Class: Wordmove::CLI::Commands::List

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/wordmove/cli.rb

Instance Method Summary collapse

Instance Method Details

#call(**cli_options) ⇒ Object



87
88
89
90
91
92
93
94
95
96
# File 'lib/wordmove/cli.rb', line 87

def call(**cli_options)
  Wordmove::EnvironmentsList.print(cli_options)
rescue Wordmove::MovefileNotFound => e
  Logger.new($stdout).error(e.message)
  exit 1
rescue Psych::SyntaxError => e
  Logger.new($stdout)
        .error("Your movefile is not parsable due to a syntax error: #{e.message}")
  exit 1
end