Class: SpaceArchitect::CLI::Shell::ShellInit

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
GlobalOptions, Helpers
Defined in:
lib/space_architect/cli/shell.rb

Instance Method Summary collapse

Methods included from Helpers

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

Methods included from GlobalOptions

included

Instance Method Details

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



13
14
15
16
17
18
19
# File 'lib/space_architect/cli/shell.rb', line 13

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