mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
slightly improved ansible-galaxy completions
This commit is contained in:
parent
4c598b504f
commit
3a56c97087
|
@ -1,4 +1,28 @@
|
|||
complete -c ansible-galaxy -a "delete import info init install list login remove search setup"
|
||||
complete -c ansible-galaxy -s h -l help -d "Show this help message and exit"
|
||||
complete -c ansible-galaxy -s v -l verbose -d "Verbose mode (-vvv for more, -vvvv to enable connection debugging)"
|
||||
complete -c ansible-galaxy -l version -d "Display version and exit"
|
||||
# global options
|
||||
complete -c ansible-galaxy -n __fish_use_subcommand -l version -d "Show version and config"
|
||||
complete -c ansible-galaxy -s h -l help -d "Show help message"
|
||||
complete -c ansible-galaxy -n __fish_use_subcommand -s v -l verbose -d "Verbose mode (-vvv for more, -vvvv for connection debugging)"
|
||||
|
||||
# first subcommand
|
||||
complete -c ansible-galaxy -n __fish_use_subcommand -xa "collection\t'Manage a collection'
|
||||
role\t'Manage a role'"
|
||||
|
||||
# second subcommand (for collection)
|
||||
complete -c ansible-galaxy -n '__fish_seen_subcommand_from collection' -a "download\t'Download collections as tarball'
|
||||
init\t'Initialize new collection with the base structure'
|
||||
build\t'Build collection artifact that can be published'
|
||||
publish\t'Publish collection artifact to Ansible Galaxy'
|
||||
install\t'Install collections'
|
||||
list\t'Show collections installed'
|
||||
verify\t'Compare checksums of local and remote collections'"
|
||||
|
||||
# second subcommand (for role)
|
||||
complete -c ansible-galaxy -n '__fish_seen_subcommand_from role' -a "init\t'Initialize new role with the base structure'
|
||||
remove\t'Delete roles from roles_path'
|
||||
delete\t'Removes the role from Galaxy'
|
||||
list\t'Show roles installed'
|
||||
search\t'Search the Galaxy database by keywords'
|
||||
import\t'Import role into a galaxy server'
|
||||
setup\t'Manage integration between Galaxy and the given source'
|
||||
info\t'View details about a role'
|
||||
install\t'Install roles'"
|
||||
|
|
Loading…
Reference in New Issue
Block a user