Class: Michael::CLI
- Inherits:
-
Thor
- Object
- Thor
- Michael::CLI
- Defined in:
- lib/michael/cli.rb
Overview
Handle the application command line parsing and the dispatch to various command objects
Constant Summary collapse
- Error =
Error raised by this runner
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#auth ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/michael/cli.rb', line 33 def auth(*) if [:help] invoke :help, ['auth'] else require_relative 'commands/auth' Michael::Commands::Auth.new().execute end end |
#version ⇒ Object
16 17 18 19 |
# File 'lib/michael/cli.rb', line 16 def version require_relative 'version' puts "v#{Michael::VERSION}" end |