Home

Awesome

Pastel CLI

Gem Version Actions CI Build status

CLI tool for intuitive terminal output styling

Pastel CLI provides terminal tool for Pastel.

Installation

Add this line to your application's Gemfile:

gem "pastel-cli"

And then execute:

$ bundle

Or install it yourself as:

$ gem install pastel-cli

Usage

To color output in green do:

$ pastel green " ✔ OK "

Apart from foreground color, you can also provide background and style like so:

$ pastel black bold on_green " ✔ OK "

It supports pipping input:

$ echo -n " ✔ OK " | pastel black bold on_green

To see all available styles and color names use --styles/-s option:

$ pastel --styles

This will produce the following in the terminal:

Swatch    Name
◼ pastel  bold
◼ pastel  dark
◼ pastel  dim
◼ pastel  italic
...

Contributing

  1. Fork it ( https://github.com/piotrmurach/pastel-cli/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Code of Conduct

Everyone interacting in the Pastel CLI project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Copyright

Copyright (c) 2016 Piotr Murach. See LICENSE for further details.