Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "api", Short: "Provides access to the platform", Long: `Provides access to the platform`, Run: func(cmd *cobra.Command, args []string) { showVersion, _ := cmd.Flags().GetBool("version") if showVersion { fmt.Println("API version", version) return } fmt.Println(cmd.Long) fmt.Println("") cmd.Usage() }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.