Class: Gemmy::CLI
- Inherits:
-
Thor
- Object
- Thor
- Gemmy::CLI
- Defined in:
- lib/gemmy/cli.rb
Overview
Command line interface
Run from command line:
gemmy <arguments>
e.g. gemmy help
Start from code with Gemmy::CLI.run
Class Method Summary collapse
-
.run(arguments: nil) ⇒ Object
Start the CLI.
Instance Method Summary collapse
Class Method Details
.run(arguments: nil) ⇒ Object
Start the CLI
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/gemmy/cli.rb', line 14 def self.run(arguments: nil) # Store a copy of the arguments. # The originals are shifted so they don't intefere with gets arguments ||= ARGV.clone ARGV.clear # Can't make this conditional on "__FILE__ == $0" # Because of the way gem executables are run start arguments end |