Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "ec", Short: "Enterprise Contract CLI", Long: hd.Doc(` Enterprise Contract CLI Set of commands to help validate resources with the Enterprise Contract. `), SilenceUsage: true, PersistentPreRun: func(cmd *cobra.Command, _ []string) { logging.InitLogging(verbose, quiet, debug) ctx := cmd.Context() ctx, cancel = context.WithTimeout(ctx, globalTimeout) cmd.SetContext(ctx) }, PersistentPostRun: func(cmd *cobra.Command, _ []string) { if cancel != nil { cancel() } }, }
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.