Class: Space::Architect::CLI::Architect::InstallSkills
Instance Method Summary
collapse
Methods inherited from BaseCommand
commit_message_options, phase
Instance Method Details
#call(provider: "claude", project: false, force: false, dry_run: false, **opts) ⇒ Object
774
775
776
777
778
779
780
781
782
783
784
785
786
|
# File 'lib/space_architect/cli/architect.rb', line 774
def call(provider: "claude", project: false, force: false, dry_run: false, **opts)
setup_terminal(**opts.slice(:color, :colors))
handle_errors do
result = SkillInstaller.install(provider, project: project, force: force,
env: project_config.env, dry_run: dry_run)
verb = dry_run ? "Would install" : "Installed"
terminal.say "#{verb} skills for #{provider} → #{terminal.path(result[:dest_root])}"
result[:skills].each do |s|
terminal.say " #{s[:name]}: #{terminal.style_skill_action(s[:action])} (#{terminal.path(s[:path])})"
end
CLI.record_outcome(Outcome.new(exit_code: 0))
end
end
|