Documentation
¶
Index ¶
- func ContainerFlags() *flags.FlagRegistry
- func RegisterContainerCompletions(cmd *cobra.Command)
- func WithContainerFlags() flags.Option
- type ContainerCommandProvider
- func (c *ContainerCommandProvider) GetAliases() []internal.CommandAlias
- func (c *ContainerCommandProvider) GetCommand() *cobra.Command
- func (c *ContainerCommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
- func (c *ContainerCommandProvider) GetFlagsBuilder() flags.Builder
- func (c *ContainerCommandProvider) GetGroup() string
- func (c *ContainerCommandProvider) GetName() string
- func (c *ContainerCommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
- func (c *ContainerCommandProvider) IsExperimental() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerFlags ¶
func ContainerFlags() *flags.FlagRegistry
ContainerFlags returns the registry of flags shared by container subcommands. Runtime selection is via the global `container.runtime.provider` config and the ATMOS_CONTAINER_RUNTIME environment variable, both honored by the runtime detector, so no per-command runtime flag is needed.
func RegisterContainerCompletions ¶
RegisterContainerCompletions registers completion functions for the container command. Every subcommand takes a component argument.
func WithContainerFlags ¶
WithContainerFlags returns a flags.Option that adds the container flags.
Types ¶
type ContainerCommandProvider ¶
type ContainerCommandProvider struct{}
ContainerCommandProvider implements the CommandProvider interface.
func (*ContainerCommandProvider) GetAliases ¶
func (c *ContainerCommandProvider) GetAliases() []internal.CommandAlias
GetAliases returns command aliases.
func (*ContainerCommandProvider) GetCommand ¶
func (c *ContainerCommandProvider) GetCommand() *cobra.Command
GetCommand returns the container command.
func (*ContainerCommandProvider) GetCompatibilityFlags ¶
func (c *ContainerCommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag
GetCompatibilityFlags returns compatibility flags for this command.
func (*ContainerCommandProvider) GetFlagsBuilder ¶
func (c *ContainerCommandProvider) GetFlagsBuilder() flags.Builder
GetFlagsBuilder returns the flags builder for this command.
func (*ContainerCommandProvider) GetGroup ¶
func (c *ContainerCommandProvider) GetGroup() string
GetGroup returns the command group for help organization.
func (*ContainerCommandProvider) GetName ¶
func (c *ContainerCommandProvider) GetName() string
GetName returns the command name.
func (*ContainerCommandProvider) GetPositionalArgsBuilder ¶
func (c *ContainerCommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder
GetPositionalArgsBuilder returns the positional args builder for this command.
func (*ContainerCommandProvider) IsExperimental ¶
func (c *ContainerCommandProvider) IsExperimental() bool
IsExperimental returns whether this command is experimental.