Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var K9sCmd = &cobra.Command{ Use: "k9s", Short: "k9s is a terminal UI for Kubernetes", Hidden: true, DisableFlagParsing: true, Run: func(cmd *cobra.Command, args []string) { kconfPath, err := GetPath(cmd) if err != nil { fn.PrintError(err) return } c := exec.Command("k9s", args...) c.Env = append(os.Environ(), fmt.Sprintf("KUBECONFIG=%s", kconfPath)) c.Stdout = os.Stdout c.Stderr = os.Stderr c.Stdin = os.Stdin if err := c.Run(); err != nil { err = nil return } }, }
View Source
var KubectlCmd = &cobra.Command{ Use: "kubectl", Short: "kubectl is a command line tool for controlling Kubernetes clusters", Hidden: true, DisableFlagParsing: true, Run: func(cmd *cobra.Command, args []string) { kconfPath, err := GetPath(cmd) if err != nil { fn.PrintError(err) return } c := exec.Command("kubectl", args...) c.Env = append(os.Environ(), fmt.Sprintf("KUBECONFIG=%s", kconfPath)) c.Stdout = os.Stdout c.Stderr = os.Stderr c.Stdin = os.Stdin if err := c.Run(); err != nil { err = nil return } }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.