feat: release v1.1.1 - host sorting by name/IP, sync destination overrides, and ~ expansion
Build and Publish Release / Build Packages and Publish (push) Successful in 25s

This commit is contained in:
soda64 committed 2026-10-03 22:05:00 +02:00
1 parent 598e5d7397
commit 62710d8bb7
19 files changed
+190 -34

No files matched your search

+6 -2
View File
@@ -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 -q --quiet -v --verbose -c --config -t --tag --filter-tag -g --group --category --filter-group --source-type --filter-source --origin -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 --sort --sort-by -r --reverse --ansible-dest --lc-dest -V --version -h --help"
formats="ansible-yaml ansible-json linux-connector yaml xml ini"
case "${prev}" in
@@ -18,7 +18,11 @@ _inventory_collector_completion() {
COMPREPLY=( $(compgen -W "proxmox static file plik k3s" -- "${cur}") )
return 0
;;
-o|--output|-s|--source|-c|--config)
--sort|--sort-by)
COMPREPLY=( $(compgen -W "name ip" -- "${cur}") )
return 0
;;
-o|--output|-s|--source|-c|--config|--ansible-dest|--lc-dest)
COMPREPLY=( $(compgen -f -- "${cur}") )
return 0
;;
+4
View File
@@ -25,6 +25,10 @@ _inventory_collector() {
'(-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)' \
'(--sort --sort-by)'{--sort,--sort-by}'[Sort hosts by name or ip]:sort:(name ip)' \
'(-r --reverse)'{-r,--reverse}'[Reverse sort order]' \
'--ansible-dest[Destination path for Ansible inventory in --sync mode]:file:_files' \
'--lc-dest[Destination path for linux-connector inventory in --sync mode]:file:_files' \
'(-V --version)'{-V,--version}'[Show program version and exit]' \
'(-h --help)'{-h,--help}'[Show help message and exit]'
}