- I wrote a scripts to copy and generate all commands missing in iris from fig repo: https://github.com/withfig/autocomplete - Add a new script to generate commands docs about which commands currently are inside commands folder 377d4aac663590e504fe39a92eb4dac4cbd333b2 - Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
34 lines
1.6 KiB
Go
34 lines
1.6 KiB
Go
package ops
|
|
|
|
import (
|
|
"github.com/versenilvis/iris/commands/core"
|
|
)
|
|
|
|
func init() {
|
|
core.Register(&core.Spec{
|
|
Name: "ansible-config",
|
|
Description: "View ansible configuration",
|
|
Subcommands: []core.Subcommand{
|
|
{Name: "list", Description: "List and output available configs"},
|
|
{Name: "CONFIG_FILE", Description: "Path to configuration file"},
|
|
{Name: "TYPE", Description: "Plugin type"},
|
|
{Name: "args", Description: "Specific plugin to target, requires type of plugin to be set"},
|
|
{Name: "dump", Description: "Shows the current settings, merges ansible.cfg if specified"},
|
|
{Name: "view", Description: "Displays the current config file"},
|
|
{Name: "init", Description: "Initializes a new config file (to stdout)"},
|
|
{Name: "FORMAT", Description: "Output format"},
|
|
},
|
|
Options: []core.Option{
|
|
{Name: "--help", Description: "Show help and exit"},
|
|
{Name: "--verbose", Description: "Verbose mode (-vvv for more, -vvvv to enable connection debugging)"},
|
|
{Name: "-v", Description: "Verbose mode (-vvv for more, -vvvv to enable connection debugging)"},
|
|
{Name: "--config", Description: "Path to configuration file, defaults to first file found in precedence"},
|
|
{Name: "--type", Description: "Filter down to a specific plugin type"},
|
|
{Name: "--only-changed", Description: "Only show configurations that have changed from the default"},
|
|
{Name: "--disabled", Description: "Prefixes all entries with a comment character to disable them"},
|
|
{Name: "--format", Description: "Output format for init"},
|
|
{Name: "--version", Description: "Show help and exit"},
|
|
},
|
|
})
|
|
}
|