Skip to content
Browse files

Update bash/zsh completions

bash
  - support 'clean' subcommand option

zsh
  - support 'clean' subcommand option
  - support 'help' subcommand completion
  • Loading branch information...
1 parent 1f6772a commit 96e924f530fa9086d053c3012705c32c6d511e92 @syohex syohex committed Nov 28, 2013
Showing with 10 additions and 1 deletion.
  1. +1 −1 contrib/bash-completion.sh
  2. +9 −0 contrib/zsh-completion.sh
View
2 contrib/bash-completion.sh
@@ -56,7 +56,7 @@ _minil()
clean)
subcommands=''
if [[ "${cur}" == -* ]] ; then
- subcommands='--help'
+ subcommands='--help -y'
fi
;;
dist)
View
9 contrib/zsh-completion.sh
@@ -63,6 +63,9 @@ _minil() {
'(-p|--profile)'{-p,--profile}'[Minilla profile]: :(XS)'
)
;;
+ clean)
+ opts=('(-y)-y[delete files without asking]')
+ ;;
install)
opts=('--no-test[Do not run test]')
;;
@@ -82,6 +85,12 @@ _minil() {
'--all[enable the All env variables]'
)
;;
+ help)
+ local -a subcommands
+ subcommands=(new build test clean dist install release migrate help)
+ _arguments -s : "()"'*: :'"($subcommands)"
+ return 0
+ ;;
*)
opts=()
;;

0 comments on commit 96e924f

Please sign in to comment.
Something went wrong with that request. Please try again.