Class: Ocak::Commands::Status

Inherits:
Dry::CLI::Command
  • Object
show all
Defined in:
lib/ocak/commands/status.rb

Instance Method Summary collapse

Instance Method Details

#call(**options) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/ocak/commands/status.rb', line 17

def call(**options)
  config = Config.load

  if options[:report]
    show_reports(config)
  else
    show_default_status(config)
  end
rescue Config::ConfigNotFound => e
  warn "Error: #{e.message}"
  exit 1
end