feat: release v1.1.0 - clean YAML, wildcard DNS protection, and tag/group/source filtering
Build and Publish Release / Build Packages and Publish (push) Successful in 9s
Build and Publish Release / Build Packages and Publish (push) Successful in 9s
This commit is contained in:
1 parent
5fedc44c6b
commit
598e5d7397
18 files changed
+318
-22
No files matched your search
@@ -6,7 +6,7 @@ _inventory_collector_completion() {
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
opts="-o --output -f --format -s --source --check --dry-run --list --sync -c --config -V --version -h --help"
|
||||
opts="-o --output -f --format -s --source --check --dry-run --list --sync -q --quiet -v --verbose -c --config -t --tag --filter-tag -g --group --category --filter-group --source-type --filter-source --origin -V --version -h --help"
|
||||
formats="ansible-yaml ansible-json linux-connector yaml xml ini"
|
||||
|
||||
case "${prev}" in
|
||||
@@ -14,6 +14,10 @@ _inventory_collector_completion() {
|
||||
COMPREPLY=( $(compgen -W "${formats}" -- "${cur}") )
|
||||
return 0
|
||||
;;
|
||||
--source-type|--filter-source|--origin)
|
||||
COMPREPLY=( $(compgen -W "proxmox static file plik k3s" -- "${cur}") )
|
||||
return 0
|
||||
;;
|
||||
-o|--output|-s|--source|-c|--config)
|
||||
COMPREPLY=( $(compgen -f -- "${cur}") )
|
||||
return 0
|
||||
|
||||
@@ -19,7 +19,12 @@ _inventory_collector() {
|
||||
'(--check --dry-run)'{--check,--dry-run}'[Inspect inventory without writing any files]' \
|
||||
'--list[Ansible dynamic inventory mode: outputs JSON to stdout]' \
|
||||
'--sync[Synchronize inventory to both Ansible and linux-connector default paths]' \
|
||||
'(-q --quiet)'{-q,--quiet}'[Silence all informational and warning messages on stderr]' \
|
||||
'(-v --verbose)'{-v,--verbose}'[Enable verbose output]' \
|
||||
'(-c --config)'{-c,--config}'[Path to configuration file]:file:_files' \
|
||||
'(-t --tag --filter-tag)'{-t,--tag,--filter-tag}'[Filter hosts by tag]:tag:' \
|
||||
'(-g --group --category --filter-group)'{-g,--group,--category,--filter-group}'[Filter hosts by group or category]:group:' \
|
||||
'(--source-type --filter-source --origin)'{--source-type,--filter-source,--origin}'[Filter hosts by source provider]:source:(proxmox static file plik k3s)' \
|
||||
'(-V --version)'{-V,--version}'[Show program version and exit]' \
|
||||
'(-h --help)'{-h,--help}'[Show help message and exit]'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user