mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-01-19 00:57:53 +00:00
removed shell completions
This commit is contained in:
parent
363c6a18c4
commit
a6250c7bb2
3 changed files with 1 additions and 83 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
target/
|
||||
completions/
|
||||
|
|
|
@ -1,73 +0,0 @@
|
|||
_lamp() {
|
||||
local i cur prev opts cmds
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
cmd=""
|
||||
opts=""
|
||||
|
||||
for i in ${COMP_WORDS[@]}
|
||||
do
|
||||
case "${i}" in
|
||||
lamp)
|
||||
cmd="lamp"
|
||||
;;
|
||||
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
case "${cmd}" in
|
||||
lamp)
|
||||
opts=" -g -z -f -l -h -V -s -i -d -t --get --zero --full --list --help --version --set --increase --decrease --type "
|
||||
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||
return 0
|
||||
fi
|
||||
case "${prev}" in
|
||||
|
||||
--set)
|
||||
COMPREPLY=($(compgen -f "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
-s)
|
||||
COMPREPLY=($(compgen -f "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
--increase)
|
||||
COMPREPLY=($(compgen -f "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
-i)
|
||||
COMPREPLY=($(compgen -f "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
--decrease)
|
||||
COMPREPLY=($(compgen -f "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
-d)
|
||||
COMPREPLY=($(compgen -f "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
--type)
|
||||
COMPREPLY=($(compgen -W "raw lin log" -- "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
-t)
|
||||
COMPREPLY=($(compgen -W "raw lin log" -- "${cur}"))
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
COMPREPLY=()
|
||||
;;
|
||||
esac
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||
return 0
|
||||
;;
|
||||
|
||||
esac
|
||||
}
|
||||
|
||||
complete -F _lamp -o bashdefault -o default lamp
|
|
@ -1,10 +0,0 @@
|
|||
complete -c lamp -n "__fish_use_subcommand" -s s -l set -d 'Sets brightness to given value'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s i -l increase -d 'Increases brightness'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s d -l decrease -d 'Decreases brightness'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s t -l type -d 'choose controller type' -r -f -a "raw lin log"
|
||||
complete -c lamp -n "__fish_use_subcommand" -s g -l get -d 'Prints current brightness value'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s z -l zero -d 'Sets brightness to lowest value'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s f -l full -d 'Sets brightness to highest value'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s l -l list -d 'Lists all available brightness and led controllers'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s h -l help -d 'Prints help information'
|
||||
complete -c lamp -n "__fish_use_subcommand" -s V -l version -d 'Prints version information'
|
Loading…
Reference in a new issue