Sha256: 83a2747d927b7bb6cb3b9e2779e2d7502e348ebb6d9a7dae742264f2e552879b
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
# 🦁 Command Lion Command-line application framework. ## Installation $ gem install command_lion ## Usage ```ruby require 'command_lion' CommandLion::App.run do name "Rainbow Hello" version "1.0.0" description "A typical, contrived example application." command :hello do description "A simple command to say hello!" type :string flag "hello" default "world" action do puts "Hello #{argument}!" end option :rainbow do description "STDOUT is much prettier with rainbows!" flag "--rainbow" action do require 'lolize/auto' end end end end ``` At the command-line: ```shell > hello_rainbow Rainbow Hello VERSION 1.0.0 DESCRIPTION A typical, contrived example application. USAGE examples/readme.rb [command] [arguments...] [options] COMMANDS hello A simple command to say hello! --rainbow STDOUT is much prettier with rainbows! > ``` ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). ## Code of Conduct Everyone interacting in the CommandLion project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/command_lion/blob/master/CODE_OF_CONDUCT.md).
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
command_lion-1.0.1 | README.md |
command_lion-1.0.0 | README.md |