Grails 2.1 command line alias « Intelligrape Groovy & Grails Blogs

Grails 2.1 command line alias

I am a linux user and like to do everything on command line, I find it more productive. Anytime I need to write long command or use any command frequently, I always create an alias for that, for example while running the test cases I need to run the command so I created alias for this in my bashrc

alias testunit='grails test-app unit:'

But there are so many and my bashrc keeps on increasing (though I am least concern of this as I have separate file for this). Here is the good news, now grails 2.1 has its own support for aliases so I created the alias for running tests

 grails alias unit test-app unit:

and now I can run my test by typing

grails unit

Actually grails reads and writes aliases to the file

.grails/.aliases

Now I can create the commonly used grails aliases in this file and share it with my team.
Isn’t it cool. Hope it helps


Uday Pratap Singh
uday@intelligrape.com
https://twitter.com/meudaypratap
http://in.linkedin.com/in/meudaypratap

This entry was posted on August 18th, 2012 at 7:18 pm and is filed under Grails . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

4 Responses to “Grails 2.1 command line alias”

  1. Juha Vainikka says:

    I was wondering where grails stored my aliases.
    Thanks for the tip.

  2. hello!,I love your writing very much! percentage we keep up a correspondence more about your post on AOL? I require an expert on this space to resolve my problem. Maybe that’s you! Having a look ahead to peer you.

  3. cars says:

    Car shopping can be very time consuming. There are plenty of cars you can
    look at, as well as a handful of factors to consider.
    You need to make sure you are aware of what you need to make it a better experience.
    Consider the following helpful advice for making things easier on you.

Leave a Reply