Class: Space::Core::CLI::Shell::ShellInit

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/space_core/cli/shell.rb

Instance Method Summary collapse

Methods included from Helpers

#display_date, #handle_errors, #project_config, #render, #setup_terminal, #state, #store, #terminal

Instance Method Details

#call(shell_name:, **opts) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/space_core/cli/shell.rb', line 9

def call(shell_name:, **opts)
  setup_terminal(**opts.slice(:color, :colors))
  handle_errors do
    terminal.say Space::Core::ShellIntegration.for(shell_name)
    CLI.record_outcome(Outcome.new(exit_code: 0))
  end
end