1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-01-08 09:17:38 +03:00

Added autocompletion for gpoa

This commit is contained in:
Valentin Sokolov 2024-02-09 13:52:19 +04:00 committed by Valery Sinelnikov
parent ec6b9f7887
commit 5baa4245e3

22
completions/gpoa Normal file
View File

@ -0,0 +1,22 @@
_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 -h' -- "$cur"))
return
;;
esac
}
complete -F _gpoa gpoa