Help us shape the future of Go! Take the 2026 Go Developer Survey

ansible

package
v1.233.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnsibleFlags

func AnsibleFlags() *flags.FlagRegistry

AnsibleFlags returns a registry with flags specific to Ansible commands. Includes common flags plus Ansible-specific flags.

func RegisterAnsibleCompletions

func RegisterAnsibleCompletions(cmd *cobra.Command)

RegisterAnsibleCompletions registers completion functions for ansible commands.

func WithAnsibleFlags

func WithAnsibleFlags() flags.Option

WithAnsibleFlags returns a flags.Option that adds all Ansible-specific flags.

Types

type AnsibleCommandProvider

type AnsibleCommandProvider struct{}

AnsibleCommandProvider implements the CommandProvider interface.

func (*AnsibleCommandProvider) GetAliases

func (a *AnsibleCommandProvider) GetAliases() []internal.CommandAlias

GetAliases returns command aliases.

func (*AnsibleCommandProvider) GetCommand

func (a *AnsibleCommandProvider) GetCommand() *cobra.Command

GetCommand returns the ansible command.

func (*AnsibleCommandProvider) GetCompatibilityFlags

func (a *AnsibleCommandProvider) GetCompatibilityFlags() map[string]compat.CompatibilityFlag

GetCompatibilityFlags returns compatibility flags for this command.

func (*AnsibleCommandProvider) GetFlagsBuilder

func (a *AnsibleCommandProvider) GetFlagsBuilder() flags.Builder

GetFlagsBuilder returns the flags builder for this command.

func (*AnsibleCommandProvider) GetGroup

func (a *AnsibleCommandProvider) GetGroup() string

GetGroup returns the command group for help organization.

func (*AnsibleCommandProvider) GetName

func (a *AnsibleCommandProvider) GetName() string

GetName returns the command name.

func (*AnsibleCommandProvider) GetPositionalArgsBuilder

func (a *AnsibleCommandProvider) GetPositionalArgsBuilder() *flags.PositionalArgsBuilder

GetPositionalArgsBuilder returns the positional args builder for this command.

func (*AnsibleCommandProvider) IsExperimental

func (a *AnsibleCommandProvider) IsExperimental() bool

IsExperimental returns whether this command is experimental.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL