Class: Agentilda::CLI::Base

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
UI
Defined in:
lib/agentilda/cli/base.rb

Overview

Shared flags and the plumbing every command needs.

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

Class Method Summary collapse

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

Class Method Details

.inherited(klass) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/agentilda/cli/base.rb', line 9

def self.inherited(klass)
  super
  klass.option :dir, default: Agentilda::PLANS_DIR, aliases: ["-D"],
    desc: "The .plans directory"
  klass.option :quiet, type: :boolean, default: false, aliases: ["-q"],
    desc: "Suppress progress output on STDERR"
end