Skip to content

Commit

Permalink
Merge pull request #27 from dgrisham/REFACTOR-task-completion-examples
Browse files Browse the repository at this point in the history
get rid of task warrior references in the completion file and examples
  • Loading branch information
jmpohl authored Dec 23, 2020
2 parents 5abef0d + 889ffe0 commit 91f5063
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
26 changes: 1 addition & 25 deletions completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,6 @@ _wenv_new() {
fi
}

_wenv_task() {
if [[ $word == -* ]]; then
_wenv_comp "-h"
else
_wenv_comp "show add"
fi
}

_wenv_task_add() {
if [[ ${prev} == "-w" ]]; then
_show_wenvs
elif [[ ${word} == -* ]]; then
_wenv_comp "-w -h"
fi
}

_wenv_task_show() {
if [[ ${prev} == "-w" ]]; then
_show_wenvs
elif [[ ${word} == -* ]]; then
_wenv_comp "-w -h"
fi
}

_wenv_edit() {
_show_wenvs
}
Expand Down Expand Up @@ -158,7 +134,7 @@ _wenv() {
if [[ $word == -* ]]; then
_wenv_comp '-h'
else
local opts="start stop cd new task edit rm mv source extension bootstrap exec"
local opts="start stop cd new edit rm mv source extension bootstrap exec"
COMPREPLY=( $(compgen -W "${opts}" -- ${word}) )
fi
;;
Expand Down
2 changes: 0 additions & 2 deletions examples/http-1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
wenv_def() {
WENV_DIR="$HOME/scratch/webdev-practice"
WENV_DEPS=()
WENV_PROJECT=''
WENV_TASK=''

startup_wenv() {
wenv_tmux_split -n http window 'python -m http.server'
Expand Down
2 changes: 0 additions & 2 deletions examples/http-2
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
wenv_def() {
WENV_DIR="$HOME/scratch/webdev-practice"
WENV_DEPS=()
WENV_PROJECT=''
WENV_TASK=''

startup_wenv() {
tmux rename-window js
Expand Down

0 comments on commit 91f5063

Please sign in to comment.