Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ecctl", Short: "Elastic Cloud Control", SilenceErrors: true, SilenceUsage: true, DisableAutoGenTag: true, CompletionOptions: cobra.CompletionOptions{ DisableDefaultCmd: true, }, BashCompletionFunction: bashCompletionFunc, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { setupViper(defaultViper) if err := setupDebug(defaultViper.GetBool("trace"), defaultViper.GetBool("pprof")); err != nil { return err } return initApp(cmd, defaultClient, defaultViper) }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
func Execute ¶
func Execute(v ecctl.VersionInfo) int
Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd. It returns the statuscode to be used by os.Exit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.