Files
proxmox-manager/completions/pman.bash
==TIM.©.B ==andTim Baumann c04e5752e7 feat: optional storage and maintenance TUI (#44)
* feat: add optional storage and maintenance module

* fix: make maintenance TUI reports usable

* feat: launch verified community PVE tools

* feat: polish optional maintenance TUI

---------

Co-authored-by: Tim Baumann <tim@timintech.com>
2026-10-28 05:04:14 +01:00

39 lines
1.1 KiB
Bash

# Bash completion for pman / proxmox-manager.sh
# Installation (one-time):
# sudo cp completions/pman.bash /etc/bash_completion.d/pman
# Or for the current user:
# source completions/pman.bash (add to ~/.bashrc for persistence)
_pman() {
local cur prev words cword
_init_completion 2>/dev/null || {
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
}
local all_flags="--list --json --filter --name --no-clear --once --timeout --force --maintenance --health --check --dry-run --test-notify --version --help"
case "$prev" in
--filter)
COMPREPLY=($(compgen -W "running stopped paused" -- "$cur"))
return 0
;;
--name)
# Free-form ERE pattern; nothing sensible to complete
COMPREPLY=()
return 0
;;
--timeout)
# Suggest common timeout values; user can type any positive integer
COMPREPLY=($(compgen -W "10 30 60 120 300" -- "$cur"))
return 0
;;
esac
COMPREPLY=($(compgen -W "$all_flags" -- "$cur"))
return 0
}
complete -F _pman pman
complete -F _pman proxmox-manager.sh