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:
parent
ec6b9f7887
commit
5baa4245e3
22
completions/gpoa
Normal file
22
completions/gpoa
Normal 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
|
Loading…
Reference in New Issue
Block a user