Class: GitJump::CLI
- Inherits:
-
Object
- Object
- GitJump::CLI
- Defined in:
- lib/git_jump/cli.rb
Overview
Command-line interface using OptionParser
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.start(argv) ⇒ Object
8 9 10 |
# File 'lib/git_jump/cli.rb', line 8 def self.start(argv) new.run(argv) end |
Instance Method Details
#run(argv) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/git_jump/cli.rb', line 12 def run(argv) @global_options = { config: nil, quiet: false, verbose: false } return print_help_and_exit if argv.empty? command = argv.shift dispatch_command(command, argv) end |