Class: Agentilda::CLI::Docs
- Defined in:
- lib/agentilda/cli/docs/docs.rb
Overview
agentilda docs — regenerate the conventions document.
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
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.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/agentilda/cli/docs/docs.rb', line 16 def call(**) document = Documentation.new.render if (path = [:output]) FileUtils.mkdir_p(File.dirname(path)) File.write(path, document) system("command -v mdformat>/dev/null 2>&1 && mdformat --wrap no #{path} 2>/dev/null") success("created workflow description in [#{path}]") unless quiet?() else $stdout.write(document) end end |