INNER CODE UNIT · Go
main
megaease/easemesh · emctl/cmd/client/main.go:72
func main() {
rootCmd := &cobra.Command{
Use: "emctl",
Short: "A command line tool for EaseMesh management and operation",
Example: exampleUsage,
SuggestFor: []string{"emctl"},
}
completionCmd := &cobra.Command{
Use: "completion bash|zsh",
Short: "Output shell completion code for the specified shell (bash or zsh)",
Run: func(cmd *cobra.Command, args []string) {
switch args[0] {
case "bash":
rootCmd.GenBashCompletion(os.Stdout)
case "zsh":
rootCmd.GenZshCompletion(os.Stdout)
default: