Class: Ocak::Commands::Resume

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

Instance Method Summary collapse

Instance Method Details

#call(issue:, **options) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/ocak/commands/resume.rb', line 20

def call(issue:, **options)
  config = Config.load
  issue_number = issue.to_i
  saved = load_state(config, issue_number)
  chdir = resolve_worktree(config, saved)

  print_resume_info(issue_number, saved, config)
  run_resumed_pipeline(config, issue_number, saved, chdir, options)
rescue Config::ConfigNotFound => e
  warn "Error: #{e.message}"
  exit 1
end