Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added subcommand support for g, destroy, plugin

  • Loading branch information...
commit bdbae8ce200387526f999a099aa4d3b78ff8b621 1 parent a8c5e91
@mernen authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 completion-rails
View
10 completion-rails
@@ -40,8 +40,14 @@ __rails_get_command() {
return
else
rails_command=$arg
- # only `generate` has a recognized subcommand at the moment
- [[ $arg != generate ]] && return
+ case $arg in
+ generate | g | destroy | plugin)
+ # continue processing, looking for a subcommand
+ ;;
+ *)
+ # end processing
+ return;;
+ esac
fi
;;
esac
Please sign in to comment.
Something went wrong with that request. Please try again.