Skip to content

Commit

Permalink
Added autocompletion script for gpupdate-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
SokolovValy committed Jan 25, 2024
1 parent d66ed08 commit f5db350
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/gpupdate-setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
_gpupdate-setup()
{
local cur prev words cword split
_init_completion -s || return

case $prev in
set-backend)
COMPREPLY=($(compgen -W 'local samba' -- "$cur"))
return
;;
*)
COMPREPLY=($(compgen -W '-h --help list list-backends status enable disable update write set-backend default-policy active-policy active-backend' -- "$cur"))
return
;;
esac
}

complete -F _gpupdate-setup gpupdate-setup

0 comments on commit f5db350

Please sign in to comment.