Browse Source

refactored3

main
pvincent 3 weeks ago
parent
commit
c5bd04280c
  1. 10
      lib/miaou.completion

10
lib/miaou.completion

@ -161,17 +161,13 @@ EOF
function _miaou_ls {
local cur="${COMP_WORDS[COMP_CWORD]}"
if [[ $cur =~ ^- ]]; then
# options
COMPREPLY=(--vm)
else
if ((COMP_CWORD == 1)); then
# containers
COMPREPLY=(--vm $(compgen -W "$(_incus_container)" -- "$cur"))
fi
elif ((COMP_CWORD == 1)); then
# containers
COMPREPLY=(--vm $(compgen -W "$(_incus_container)" -- "$cur"))
fi
}
function _array_intersect {

Loading…
Cancel
Save