Tools for CLI application
A collection of helper methods for ruby CLI application.
Installation
Add this line to your application's Gemfile:
gem 'cli_tools'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cli_tools
Usage
require 'cli_tools'
include CliTools
puts esc_green("Hello")+' world!' # outputs 'Hello world!' where 'Hello' is painted green
OR: all the methods automatically included into Kernel:
require 'cli_tools/include'
puts esc_green("Hello")+' world!'
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request