Class: Jambots::Cli

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

Constant Summary collapse

DEFAULT_BOT =
"jambot"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/jambots/cli.rb', line 5

def self.exit_on_failure?
  false
end

Instance Method Details

#chat(query) ⇒ Object



25
26
27
28
# File 'lib/jambots/cli.rb', line 25

def chat(query)
  chat_controller = Controllers::ChatController.new(options)
  chat_controller.chat(query)
end

#initObject



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

def init
  init_controller = Controllers::InitController.new(options)
  init_controller.init_jambots_path
end

#new(name) ⇒ Object



34
35
36
37
# File 'lib/jambots/cli.rb', line 34

def new(name)
  new_controller = Controllers::NewController.new(options)
  new_controller.create_bot(name)
end