Class: SpaceArchitect::CLI::Config::ConfigPath

Inherits:
Dry::CLI::Command
  • Object
show all
Includes:
GlobalOptions, Helpers
Defined in:
lib/space_architect/cli/config.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(**opts) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/space_architect/cli/config.rb', line 31

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