Project

pastel-cli

0.0
No release in over 3 years
Low commit activity in last 3 years
A command-line tool for coloring and styling text in the ternimal
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.17
>= 0
>= 3.0

Runtime

~> 0.8
 Project Readme

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.