Skip to content

Commit

Permalink
update bash-completion scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxnor committed Aug 22, 2022
1 parent 8ea5310 commit 3e99f05
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions usr/share/bash-completion/completions/onionjuggler-cli
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ _onionjuggler_cli()
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi

} &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ _onionjuggler_cli_auth_client()
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi

} &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ _onionjuggler_cli_auth_server()
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi

} &&
Expand Down
37 changes: 37 additions & 0 deletions usr/share/bash-completion/completions/onionjuggler-cli-web
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# onionjuggler-cli-web(8) completion -*- shell-script -*-

_onionjuggler_cli_web()
{
local cur prev words cword
_init_completion || return

case $prev in
-no-check-service | \
--on | --off | --list | --getopt )
return
;;
--port )
return
;;
--service )
return
;;
--folder )
_filedir
return
;;
--help | --version | --getconf )
return
;;
esac

if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi

} &&
complete -F _onionjuggler_cli_web onionjuggler-cli-web

# ex: filetype=sh
23 changes: 23 additions & 0 deletions usr/share/bash-completion/completions/onionjuggler-tui
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# onionjuggler-cli-auth-client(8) completion -*- shell-script -*-

_onionjuggler_cli_auth_client()
{
local cur prev words cword
_init_completion || return

case $prev in
--help | --version )
return
;;
esac

if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi

} &&
complete -F _onionjuggler_cli_auth_client onionjuggler-cli-auth-client

# ex: filetype=sh

0 comments on commit 3e99f05

Please sign in to comment.