Skip to content

welbornio/hulk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hulk

Hulk is an ultra simple command line tool for running a list of bash commands synchronously.

Installing

Just run the following command to install hulk onto your system.

gem install the_hulk

Usage

After adding a hulk.yml file to your project root, simply reference the following example to add hulk builds.

push:
 - "git add ."
 - "git commit -m 'Made some changes.'"
 - "git push origin master"
deploy:
 - --push
 - "git push -f heroku dev:master"

The above example will give you the following:

  1. Calling hulk push will run the 3 commands you see under push:, in the order they appear, in a synchronous manner.
  2. Calling hulk deploy will run the push build, and then run the deploy to the heroku server.

Nesting builds

As shown in the above example, you can call other builds within your current build. Simply prefix the build name with -- and hulk will understand what you're asking. After running the other build, hulk will continue on with the initial build called.

You can mix and match builds with commands, and nest builds as frequent, or infrequent as you like. Hulk can handle it.

Using variables

Hulk can support variables in commands, with the use of $$ as a placeholder.

build:
 - "rake precompile:$$"
 - "git add ."
 - "git commit -m '$$'"
 - "git push -f heroku:$$"

Feel free to use multiple variables.

perform:
- "$$ and then $$ followed by $$"

Hulk will prompt you for each variable in your build before it runs, and then you may step away as Hulk smashes through your build with your assigned variables.

About

Super simple, yet versatile command runner.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages