Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 70 additions & 3 deletions completions/batten.bash
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ _batten() {
batten__subcmd__doctor,hooks)
cmd="batten__subcmd__doctor__subcmd__hooks"
;;
batten__subcmd__doctor,mediator)
cmd="batten__subcmd__doctor__subcmd__mediator"
;;
batten__subcmd__doctor,session)
cmd="batten__subcmd__doctor__subcmd__session"
;;
Expand All @@ -301,6 +304,9 @@ _batten() {
batten__subcmd__doctor__subcmd__help,hooks)
cmd="batten__subcmd__doctor__subcmd__help__subcmd__hooks"
;;
batten__subcmd__doctor__subcmd__help,mediator)
cmd="batten__subcmd__doctor__subcmd__help__subcmd__mediator"
;;
batten__subcmd__doctor__subcmd__help,session)
cmd="batten__subcmd__doctor__subcmd__help__subcmd__session"
;;
Expand Down Expand Up @@ -511,6 +517,9 @@ _batten() {
batten__subcmd__help__subcmd__doctor,hooks)
cmd="batten__subcmd__help__subcmd__doctor__subcmd__hooks"
;;
batten__subcmd__help__subcmd__doctor,mediator)
cmd="batten__subcmd__help__subcmd__doctor__subcmd__mediator"
;;
batten__subcmd__help__subcmd__doctor,session)
cmd="batten__subcmd__help__subcmd__doctor__subcmd__session"
;;
Expand Down Expand Up @@ -2553,7 +2562,7 @@ _batten() {
return 0
;;
batten__subcmd__doctor)
opts="-J -q -v -y -h --json --strictness --fail-on-warning --config-from --config-in --silent --quiet --verbose --debug --trace --log-level --no-color --no-input --yes --help hooks session help"
opts="-J -q -v -y -h --json --strictness --fail-on-warning --config-from --config-in --silent --quiet --verbose --debug --trace --log-level --no-color --no-input --yes --help mediator hooks session help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down Expand Up @@ -2583,7 +2592,7 @@ _batten() {
return 0
;;
batten__subcmd__doctor__subcmd__help)
opts="hooks session help"
opts="mediator hooks session help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand Down Expand Up @@ -2624,6 +2633,20 @@ _batten() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
batten__subcmd__doctor__subcmd__help__subcmd__mediator)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
batten__subcmd__doctor__subcmd__help__subcmd__session)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
Expand Down Expand Up @@ -2668,6 +2691,36 @@ _batten() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
batten__subcmd__doctor__subcmd__mediator)
opts="-J -q -v -y -h --json --strictness --fail-on-warning --config-from --config-in --silent --quiet --verbose --debug --trace --log-level --no-color --no-input --yes --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--strictness)
COMPREPLY=($(compgen -W "permissive standard strict" -- "${cur}"))
return 0
;;
--config-from)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--config-in)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--log-level)
COMPREPLY=($(compgen -W "silent quiet normal verbose debug trace" -- "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
batten__subcmd__doctor__subcmd__session)
opts="-J -q -v -y -h --json --strictness --fail-on-warning --config-from --config-in --silent --quiet --verbose --debug --trace --log-level --no-color --no-input --yes --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
Expand Down Expand Up @@ -3471,7 +3524,7 @@ _batten() {
return 0
;;
batten__subcmd__help__subcmd__doctor)
opts="hooks session"
opts="mediator hooks session"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
Expand All @@ -3498,6 +3551,20 @@ _batten() {
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
batten__subcmd__help__subcmd__doctor__subcmd__mediator)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
batten__subcmd__help__subcmd__doctor__subcmd__session)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
Expand Down
Loading
Loading