Pin clap to 3.0.0.beta2

This commit is contained in:
Dheepak Krishnamurthy 2021-08-16 12:30:55 -06:00
parent 6b550ac1d7
commit 4c5d74d1d4
7 changed files with 43 additions and 39 deletions

View file

@ -19,17 +19,19 @@ _taskwarrior-tui() {
'--config=[Sets a custom config file]' \
'-r+[Sets default report]' \
'--report=[Sets default report]' \
'-h[Print help information]' \
'--help[Print help information]' \
'-V[Print version information]' \
'--version[Print version information]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
&& ret=0
}
(( $+functions[_taskwarrior-tui_commands] )) ||
_taskwarrior-tui_commands() {
local commands; commands=()
local commands; commands=(
)
_describe -t commands 'taskwarrior-tui commands' commands "$@"
}

View file

@ -24,10 +24,10 @@ Register-ArgumentCompleter -Native -CommandName 'taskwarrior-tui' -ScriptBlock {
[CompletionResult]::new('--config', 'config', [CompletionResultType]::ParameterName, 'Sets a custom config file')
[CompletionResult]::new('-r', 'r', [CompletionResultType]::ParameterName, 'Sets default report')
[CompletionResult]::new('--report', 'report', [CompletionResultType]::ParameterName, 'Sets default report')
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Print help information')
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Print help information')
[CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Print version information')
[CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Print version information')
[CompletionResult]::new('-h', 'h', [CompletionResultType]::ParameterName, 'Prints help information')
[CompletionResult]::new('--help', 'help', [CompletionResultType]::ParameterName, 'Prints help information')
[CompletionResult]::new('-V', 'V', [CompletionResultType]::ParameterName, 'Prints version information')
[CompletionResult]::new('--version', 'version', [CompletionResultType]::ParameterName, 'Prints version information')
break
}
})

View file

@ -20,7 +20,7 @@ _taskwarrior-tui() {
case "${cmd}" in
taskwarrior__tui)
opts=" -h -V -c -r --help --version --config --report "
opts=" -c -r -h -V --config --report --help --version "
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
@ -31,7 +31,7 @@ _taskwarrior-tui() {
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-c)
-c)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
@ -39,7 +39,7 @@ _taskwarrior-tui() {
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-r)
-r)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;

View file

@ -1,4 +1,4 @@
complete -c taskwarrior-tui -s c -l config -d 'Sets a custom config file' -r
complete -c taskwarrior-tui -s r -l report -d 'Sets default report' -r
complete -c taskwarrior-tui -s h -l help -d 'Print help information'
complete -c taskwarrior-tui -s V -l version -d 'Print version information'
complete -c taskwarrior-tui -n "__fish_use_subcommand" -s c -l config -d 'Sets a custom config file' -r
complete -c taskwarrior-tui -n "__fish_use_subcommand" -s r -l report -d 'Sets default report' -r
complete -c taskwarrior-tui -n "__fish_use_subcommand" -s h -l help -d 'Prints help information'
complete -c taskwarrior-tui -n "__fish_use_subcommand" -s V -l version -d 'Prints version information'