Documentation ¶
Index ¶
- func AddFlags(cmd *cobra.Command)
- func NewApplyCmd() *cobra.Command
- func NewCompletionCmd() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewRootCommand(out, stderr io.Writer) *cobra.Command
- func NewVersionCmd() *cobra.Command
- func SetUpLogs(stdErr io.Writer, level string) error
- type Builder
- type CommonFlag
- type Flag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
AddFlags adds to the command the common flags that are annotated with the command name.
func NewApplyCmd ¶
func NewCompletionCmd ¶
NewCompletionCmd returns the cobra command that outputs shell completion code
func NewDeleteCmd ¶
func NewInitCmd ¶
func NewListCmd ¶
Types ¶
type Builder ¶
type Builder interface { WithDescription(description string) Builder WithLongDescription(long string) Builder WithExample(comment, command string) Builder WithFlags(flags []*Flag) Builder SetAliases(alias []string) Builder WithCommonFlags() Builder Hidden() Builder ExactArgs(argCount int, action func(context.Context, io.Writer, *cobra.Command, []string) error) *cobra.Command NoArgs(action func(context.Context, io.Writer) error) *cobra.Command }
Builder is used to build cobra commands.
type CommonFlag ¶
type CommonFlag struct {
Namespace string
}
Click to show internal directories.
Click to hide internal directories.