Class: Space::Core::CLI::Path
- Inherits:
-
BaseCommand
- Object
- Dry::CLI::Command
- BaseCommand
- Space::Core::CLI::Path
- Defined in:
- lib/space_core/cli/path.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(identifier: nil, **opts) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/space_core/cli/path.rb', line 8 def call(identifier: nil, **opts) setup_terminal(**opts.slice(:color, :colors)) render(store.path_for(identifier)) do |path| terminal.say terminal.path(path) CLI.record_outcome(Outcome.new(exit_code: 0)) end end |