Documentation
¶
Index ¶
- type DocsCommandProvider
- func (d *DocsCommandProvider) GetAliases() []internal.CommandAlias
- func (d *DocsCommandProvider) GetCommand() *cobra.Command
- func (d *DocsCommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
- func (d *DocsCommandProvider) GetFlagsBuilder() flags.Builder
- func (d *DocsCommandProvider) GetGroup() string
- func (d *DocsCommandProvider) GetName() string
- func (d *DocsCommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
- func (d *DocsCommandProvider) IsExperimental() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocsCommandProvider ¶
type DocsCommandProvider struct{}
DocsCommandProvider implements the CommandProvider interface.
func (*DocsCommandProvider) GetAliases ¶
func (d *DocsCommandProvider) GetAliases() []internal.CommandAlias
GetAliases returns command aliases. The docs command has no aliases.
func (*DocsCommandProvider) GetCommand ¶
func (d *DocsCommandProvider) GetCommand() *cobra.Command
GetCommand returns the docs command.
func (*DocsCommandProvider) GetCompatibilityFlags ¶
func (d *DocsCommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
GetCompatibilityFlags returns compatibility flags for this command. The docs command has no compatibility flags.
func (*DocsCommandProvider) GetFlagsBuilder ¶
func (d *DocsCommandProvider) GetFlagsBuilder() flags.Builder
GetFlagsBuilder returns the flags builder for this command. The docs command has no flags of its own; docs generate registers its own via its parser.
func (*DocsCommandProvider) GetGroup ¶
func (d *DocsCommandProvider) GetGroup() string
GetGroup returns the command group for help organization.
func (*DocsCommandProvider) GetName ¶
func (d *DocsCommandProvider) GetName() string
GetName returns the command name.
func (*DocsCommandProvider) GetPositionalArgsBuilder ¶
func (d *DocsCommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
GetPositionalArgsBuilder returns the positional args builder for this command. The docs command validates its optional component argument via cobra.MaximumNArgs(1).
func (*DocsCommandProvider) IsExperimental ¶
func (d *DocsCommandProvider) IsExperimental() bool
IsExperimental returns whether this command is experimental.