Class: Space::Src::CLI::Shell::Init
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Space::Src::CLI::Shell::Init
- Defined in:
- lib/space_src/cli/shell.rb
Instance Method Summary collapse
Instance Method Details
#call(shell_name:) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/space_src/cli/shell.rb', line 13 def call(shell_name:, **) out.puts ShellIntegration.for(shell_name) CLI.record_outcome(Outcome.new(exit_code: 0)) rescue => e err.puts "src shell init: #{e.}" CLI.record_outcome(Outcome.new(exit_code: 1)) end |