Class: WritersRoom::Commands::Chat
- Inherits:
-
Thor
- Object
- Thor
- WritersRoom::Commands::Chat
- Defined in:
- lib/writers_room/cli/chat.rb
Instance Method Summary collapse
Instance Method Details
#chat ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/writers_room/cli/chat.rb', line 10 def chat context = WritersRoom::ContextDetector.new.detect if context.in_project? start_project_chat(context) else start_init_chat end rescue StandardError => e say "Error starting chat: #{e.message}", :red say e.backtrace.first(5).join("\n"), :red if ENV["DEBUG"] exit 1 end |