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

#callObject



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

def call(**)
  config = Config.load

  puts 'Pipeline Status'
  puts '=' * 40
  puts ''

  show_issues(config)
  puts ''
  show_worktrees(config)
  puts ''
  show_recent_logs(config)
rescue Config::ConfigNotFound => e
  warn "Error: #{e.message}"
  exit 1
end