Class: Michael::CLI

Inherits:
Thor
  • Object
show all
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

#authObject



33
34
35
36
37
38
39
40
# File 'lib/michael/cli.rb', line 33

def auth(*)
  if options[:help]
    invoke :help, ['auth']
  else
    require_relative 'commands/auth'
    Michael::Commands::Auth.new(options).execute
  end
end

#versionObject



16
17
18
19
# File 'lib/michael/cli.rb', line 16

def version
  require_relative 'version'
  puts "v#{Michael::VERSION}"
end