0.01
No commit activity in last 3 years
No release in over 3 years
Command-line application framework.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.0
 Project Readme

🦁 Command Lion

Command-line application framework.

Installation

$ gem install command_lion

Usage

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:

> 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.

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.