2021-03-03 14:00:50 +00:00
|
|
|
#compdef _proxmox-tape() proxmox-tape
|
|
|
|
|
|
|
|
function _proxmox-tape() {
|
|
|
|
local cwords line point cmd curr prev
|
2021-09-02 11:48:23 +00:00
|
|
|
cwords=${#words[@]}
|
2021-03-03 14:00:50 +00:00
|
|
|
line=$words
|
|
|
|
point=${#line}
|
|
|
|
cmd=${words[1]}
|
|
|
|
curr=${words[cwords]}
|
|
|
|
prev=${words[cwords-1]}
|
|
|
|
compadd -- $(COMP_CWORD="$cwords" COMP_LINE="$line" COMP_POINT="$point" \
|
|
|
|
proxmox-tape bashcomplete "$cmd" "$curr" "$prev")
|
|
|
|
}
|