Class: Agentilda::CLI::ListPlans

Inherits:
Base
  • Object
show all
Defined in:
lib/agentilda/cli/list_plans/list_plans.rb

Overview

agentilda list-plans — backs /plan-status.

Constant Summary

Constants included from UI

UI::MAX_WIDTH, UI::METER_WIDTH, UI::MIN_WIDTH, UI::NO_FAILURE, UI::NO_FIELDS, UI::NO_TIMEOUT, UI::PROGRESS_THRESHOLD, UI::TIMER_WARNING, UI::TIMER_WIDTH

Instance Method Summary collapse

Methods inherited from Base

inherited

Methods included from UI

abbreviate, activity_for, animate?, box, box_height, color?, concurrently, countdown, default_jobs, display_width, elapsed, #error, fit, #info, line, log, logging_activity, meter, monotonic, once, paint, #paint, pastel, popup, report_line, reset!, said, #say, solo_spinner, spinning, stepping, #success, threaded, tty?, #warn, width

Instance Method Details

#call(**options) ⇒ void

This method returns an undefined value.

Parameters:

  • options (Hash)


13
14
15
16
17
18
# File 'lib/agentilda/cli/list_plans/list_plans.rb', line 13

def call(**options)
  reporter = Reporter.new(tree: tree_for(options))
  $stdout.write(reporter.render)

  exit 1 unless reporter.inconsistent.empty?
end