Browse files

Update news and bash/zsh completion scripts. Fixes #437.

  • Loading branch information...
1 parent 82bbd3b commit d255672ac764d12fa4bb85a2e0bd847d5cc43b57 @technomancy committed Mar 9, 2012
Showing with 23 additions and 10 deletions.
  1. +6 −0 NEWS.md
  2. +9 −3 bash_completion.bash
  3. +8 −7 zsh_completion.zsh
View
6 NEWS.md
@@ -1,5 +1,10 @@
# Leiningen News -- history of user-visible changes
+## 2.0.0-preview2 / 2012-03-08
+
+* Honor :default and :user profiles when running outside a project.
+* Fix a bug where subtask help wasn't showing.
+
## 2.0.0-preview1 / 2012-03-07
* Split out leiningen-core into independent library.
@@ -24,6 +29,7 @@
* Allow partial application of aliases.
* Drop :extra-classpath-dirs option.
* Load :plugins without trampolining the process.
+* Remove plugin task in favour of :user profile.
* Allow :repository-auth to be specified using a regular expression.
* Support arbitrary project map transformation functions via :middleware.
* Support changing :local-repo path in project.clj.
View
12 bash_completion.bash
@@ -3,10 +3,10 @@ _lein_completion() {
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
- tasks="classpath clean compile deploy deps help install interactive jar javac new plugin pom repl run swank test test! uberjar version"
+ tasks="check classpath clean compile deploy deps help install jar javac new pom repl retest run search swank test trampoline uberjar upgrade version with-profile"
case "${prev}" in
- classpath | clean | compile | deploy | deps | install | interactive | jar | javac | new | plugin | pom | repl | swank | uberjar | version)
+ check | classpath | clean | deploy | deps | install | jar | javac | new | pom | repl | swank | uberjar | version)
COMPREPLY=()
;;
help)
@@ -18,12 +18,18 @@ _lein_completion() {
COMPREPLY=( $(compgen -W "${tasks}" -- ${cur}) )
fi
;;
- run | test | test!)
+ test | retest )
# list project's test namespaces:
local namespaces=$(find test/ -type f -name "*.clj" -exec grep -E \
'^\(ns[[:space:]]+\w+' '{}' ';' | sed -n 's/(ns[ ]*//p')
COMPREPLY=( $(compgen -W "${namespaces}" -- ${cur}) )
;;
+ run | compile)
+ # list project's src namespaces:
+ local namespaces=$(find src/ -type f -name "*.clj" -exec grep -E \
+ '^\(ns[[:space:]]+\w+' '{}' ';' | sed -n 's/(ns[ ]*//p')
+ COMPREPLY=( $(compgen -W "${namespaces}" -- ${cur}) )
+ ;;
lein)
COMPREPLY=( $(compgen -W "${tasks}" -- ${cur}) )
;;
View
15 zsh_completion.zsh
@@ -13,31 +13,32 @@ _lein() {
_call_function 1 _lein_${words[1]}
else
_values "lein command" \
+ "check[Check syntax and warn on reflection.]" \
"classpath[Print the classpath of the current project.]" \
- "clean[Remove compiled class files and jars from project.]" \
+ "clean[Remove all files from project's target-path.]" \
"compile[Compile Clojure source into \.class files.]" \
"deploy[Build jar and deploy to remote repository.]" \
- "deps[Download :dependencies and put them in :library-path.]" \
+ "deps[Download :dependencies.]" \
"help[Display a list of tasks or help for a given task.]" \
- "install[Install current project or download specified project.]" \
- "interactive[Enter an interactive task shell.]" \
+ "install[Install current project to the local repository.]" \
"jack-in[Jack in to a Clojure SLIME session from Emacs.]" \
"jar[Package up all the project's files into a jar file.]" \
"javac[Compile Java source files.]" \
"new[Create a new project skeleton.]" \
"plugin[Manage user-level plugins.]" \
- "pom[Write a pom.xml file to disk for Maven interop.]" \
+ "pom[Write a pom.xml file to disk for Maven interoperability.]" \
+ "profiles[List all available profiles or display one if given an argument.]" \
"repl[Start a repl session either with the current project or standalone.]" \
"retest[Run only the test namespaces which failed last time around.]" \
"run[Run the project's -main function.]" \
"search[Search remote repositories.]" \
"swank[Launch swank server for Emacs to connect.]" \
"test[Run the project's tests.]" \
- "test![Run a project's tests after cleaning and fetching dependencies.]" \
"trampoline[Run a task without nesting the project's JVM inside Leiningen's.]" \
"uberjar[Package up the project files and all dependencies into a jar file.]" \
"upgrade[Upgrade Leiningen to the latest stable release.]" \
- "version[Print version for Leiningen and the current JVM.]"
+ "version[Print version for Leiningen and the current JVM.]" \
+ "with-profile[Apply the given task with the profile(s) specified.]"
fi
}

0 comments on commit d255672

Please sign in to comment.