ShellExplain
Explain shell input from your command line.
Thanks http://explainshell.com/
Installation
Add this line to your application's Gemfile:
gem 'shell_explain'
And then execute:
$ bundle
Or install it yourself as:
$ gem install shell_explain
Usage
$ explain "true && { echo success; } || { echo failed; }"
$ explain "find . -type f -print0"
$ explain "ssh -i keyfile -f -N -L 1234:www.google.com:80 host"
$ explain "lsof -c python -u user"
$ explain "mysql -u root -p -h 192.168.1.2"
$ explain "iptables -A INPUT -i eth0 -s ip-to-block -j DROP"
$ explain "git log --graph --abbrev-commit --pretty=oneline origin..mybranch"
change explain text color: color depend on 'ansi'
$ explain "true && { echo success; } || { echo failed; }" "green"
Screenshots
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