Class: Agentilda::CLI::Linear::Import
- Defined in:
- lib/agentilda/cli/linear/subcommands/import.rb
Overview
linear import — the plans, as Linear issues under one of your projects.
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.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/agentilda/cli/linear/subcommands/import.rb', line 36 def call(team:, **) tree = tree_for() require_project!() import = build(tree, team, resolve_project(team, tree, ), ) return $stdout.puts(import.to_json) if [:format] == "json" if import.pending.empty? success("Linear is already in step with #{tree.dir}.") unless quiet?() return end preview(import, ) rescue Agentilda::Error => e refuse(e., 69) end |