Class: Blazing::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/blazing/cli.rb

Instance Method Summary collapse

Instance Method Details

#goto(target_name) ⇒ Object


56
57
58
# File 'lib/blazing/cli.rb', line 56

def goto(target_name)
  Blazing::Commands.run(:goto, target_name: target_name, cli_options: options)
end

#initObject


14
15
16
# File 'lib/blazing/cli.rb', line 14

def init
  Blazing::Commands.run(:init)
end

#setup(target_name = nil) ⇒ Object


28
29
30
# File 'lib/blazing/cli.rb', line 28

def setup(target_name = nil)
  Blazing::Commands.run(:setup, target_name: target_name, cli_options: options)
end

#update(target_name = nil) ⇒ Object


42
43
44
# File 'lib/blazing/cli.rb', line 42

def update(target_name = nil)
  Blazing::Commands.run(:update, target_name: target_name, cli_options: options)
end

#versionObject


67
68
69
# File 'lib/blazing/cli.rb', line 67

def version
  puts "blazing version #{::Blazing::VERSION}"
end