1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-05 05:17:52 +03:00
gpupdate/completions/gpoa
2024-08-09 12:05:14 +04:00

23 lines
496 B
Plaintext

_gpoa()
{
local cur prev words cword split
_init_completion -s || return
case $prev in
--dc)
_filedir
return
;;
--loglevel)
COMPREPLY=($(compgen -W '0 1 2 3 4 5' -- "$cur"))
return
;;
*)
COMPREPLY=($(compgen -W '--dc --nodomain --noupdate --noplugins --list-backends --loglevel --help --force' -- "$cur"))
return
;;
esac
}
complete -F _gpoa gpoa