1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Added autocompletion for gpupdate

This commit is contained in:
Valentin Sokolov 2024-02-09 13:53:00 +04:00 committed by Valery Sinelnikov
parent 5baa4245e3
commit 047e5459af

27
completions/gpupdate Normal file
View File

@ -0,0 +1,27 @@
_gpupdate()
{
local cur prev words cword split
_init_completion -s || return
case $prev in
-u|--user)
_filedir
return
;;
-t|--target)
COMPREPLY=($(compgen -W 'ALL USER COMPUTER' -- "$cur"))
return
;;
-l|--loglevel)
COMPREPLY=($(compgen -W '0 1 2 3 4 5' -- "$cur"))
return
;;
*)
COMPREPLY=($(compgen -W '-u --user -t --target -l --loglevel -s --system -h --help' -- "$cur"))
return
;;
esac
}
complete -F _gpupdate gpupdate