Merge pull request #1737 from hron84/feature-bundler-add-cleanup
Adding undocumented clean command to completion
Diff
1diff --git a/plugins/bundler/_bundler b/plugins/bundler/_bundler
2index 5d22cac9a3f1985cf6174e6b1e2b4c23c055828f..2ec3a5f9c7c97ea821c3ec6ac4e57108b8cc923d 100644
3--- a/plugins/bundler/_bundler
4+++ b/plugins/bundler/_bundler
5@@ -23,6 +23,7 @@ case $state in
6 "viz[Generate a visual representation of your dependencies]" \
7 "init[Generate a simple Gemfile, placed in the current directory]" \
8 "gem[Create a simple gem, suitable for development with bundler]" \
9+ "clean[Cleans up unused gems in your bundler directory]" \
10 "help[Describe available tasks or one specific task]"
11 ret=0
12 ;;
13@@ -62,6 +63,14 @@ case $state in
14 exec)
15 _normal && ret=0
16 ;;
17+ clean)
18+ _arguments \
19+ '(--force)--force[forces clean even if --path is not set]' \
20+ '(--dry-run)--dry-run[only print out changes, do not actually clean gems]' \
21+ '(--no-color)--no-color[Disable colorization in output]' \
22+ '(--verbose)--verbose[Enable verbose output mode]'
23+ ret=0
24+ ;;
25 (open|show)
26 _gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') )
27 if [[ $_gems != "" ]]; then