Skip to content

Commit

Permalink
Update bash completion with latest task list.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Jan 15, 2011
1 parent e30a38d commit 31e5c6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bash_completion.bash
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ _lein_completion() {
COMPREPLY=() COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}" cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}" prev="${COMP_WORDS[COMP_CWORD-1]}"
tasks="clean compile deps help install jar new pom test uberjar version" tasks="classpath clean compile deploy deps help install interactive jar javac new plugin pom repl run swank test test! uberjar version"


case "${prev}" in case "${prev}" in
clean | compile | deps | install | jar | new | pom | uberjar | version) classpath | clean | compile | deploy | deps | install | interactive | jar | javac | new | plugin | pom | repl | swank | uberjar | version)
COMPREPLY=() COMPREPLY=()
;; ;;
help) help)
Expand All @@ -18,7 +18,7 @@ _lein_completion() {
COMPREPLY=( $(compgen -W "${tasks}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${tasks}" -- ${cur}) )
fi fi
;; ;;
test) run | test | test!)
# list project's test namespaces: # list project's test namespaces:
local namespaces=$(find test/ -type f -name "*.clj" -exec grep -E \ local namespaces=$(find test/ -type f -name "*.clj" -exec grep -E \
'^\(ns[[:space:]]+\w+' '{}' ';' | sed -n 's/(ns[ ]*//p') '^\(ns[[:space:]]+\w+' '{}' ';' | sed -n 's/(ns[ ]*//p')
Expand Down

0 comments on commit 31e5c6f

Please sign in to comment.