Module: WordSmith

Extended by:
T::Sig
Defined in:
lib/index.rb,
lib/config.rb,
lib/helpers/str.rb,
lib/models/word.rb,
lib/services/db.rb,
lib/services/logger.rb,
lib/migrations/index.rb,
lib/services/open_a_i.rb,
lib/migrations/1_words.rb,
lib/command_runner/index.rb,
lib/helpers/logo_visualizer.rb,
lib/command_runner/translation.rb

Defined Under Namespace

Modules: CommandRunner, Config, Helpers, Migrations, Models, Services

Class Method Summary collapse

Class Method Details

.run(args) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/index.rb', line 12

def run(args)
  Helpers::LogoVisualizer.draw

  run_migrations

  CommandRunner.run(args)
rescue CommandRunner::ArgumentError => e
  puts e.message

  exit 1
end