Sha256: c458ce398da23f6c834ced22b947bbd0611353d27c6849e6ad0f18a28bd2f026
Contents?: true
Size: 1.34 KB
Versions: 6
Compression:
Stored size: 1.34 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 flags do short "-h" long "--hello" end 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
command_lion-2.0.1 | README.md |
command_lion-2.0.0 | README.md |
command_lion-1.0.4 | README.md |
command_lion-1.0.3geff | README.md |
command_lion-1.0.3 | README.md |
command_lion-1.0.2 | README.md |