onrails.org home

Updated Rake Command Completion

Here’s another update to a previous post.

  1. A bug was fixed that caused the first task to be omitted from the task list.
  2. A new feature was added to allow rake not to be the first command on the command line.  Now you get completion for both rakes in the following command: rake db:migrate VERSION=0 && rake db:migrate
  3. Another feature for quicker rake command completion development, <sarcasm>a feature everyone has been waiting for</sarcasm>.  This feature just adds the rake completion script itself to the cache dependency list, so the cache will be refreshed while you are playing with the command completion script.  This should make tweaking the script much easier in the future.
As always, enjoy.

Fork me on GitHub