mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 05:26:42 +02:00
fix: Update build.rs to fix completions
This commit is contained in:
parent
4998bd398b
commit
57097d3bec
3 changed files with 9 additions and 13 deletions
|
@ -12,7 +12,6 @@ _taskwarrior-tui() {
|
|||
taskwarrior-tui)
|
||||
cmd="taskwarrior__tui"
|
||||
;;
|
||||
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
@ -20,13 +19,12 @@ _taskwarrior-tui() {
|
|||
|
||||
case "${cmd}" in
|
||||
taskwarrior__tui)
|
||||
opts=" -h -V -c -r --help --version --config --report "
|
||||
opts="-h -V -c -r --help --version --config --report"
|
||||
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||
return 0
|
||||
fi
|
||||
case "${prev}" in
|
||||
|
||||
--config)
|
||||
COMPREPLY=($(compgen -f "${cur}"))
|
||||
return 0
|
||||
|
@ -50,7 +48,6 @@ _taskwarrior-tui() {
|
|||
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
|
||||
return 0
|
||||
;;
|
||||
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue