Class: Agentilda::CLI::Linear::Projects
- Defined in:
- lib/agentilda/cli/linear/subcommands/projects.rb
Overview
linear projects — what the team already has.
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 Team
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(team:, **options) ⇒ void
This method returns an undefined value.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/agentilda/cli/linear/subcommands/projects.rb', line 18 def call(team:, **) tree = tree_for() _api, survey = survey_for(team, tree) survey.projects.each { |project| puts row(project) } return if quiet?() survey.projects.each do |project| say("#{paint(project["name"], :cyan)}\n #{paint(project["url"].to_s, :bright_black)}") end report_descriptions(survey) rescue Agentilda::Error => e refuse(e., 69) end |