1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-27 10:03:46 +03:00
2024-06-13 16:52:34 +04:00

23 lines
488 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' -- "$cur"))
return
;;
esac
}
complete -F _gpoa gpoa