Class: Space::Core::CLI::Shell::Complete
- Inherits:
-
BaseCommand
- Object
- Dry::CLI::Command
- BaseCommand
- Space::Core::CLI::Shell::Complete
- 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(kind:, extra: [], **opts) ⇒ Object
86 87 88 89 90 91 92 |
# File 'lib/space_core/cli/shell.rb', line 86 def call(kind:, extra: [], **opts) setup_terminal(**opts.slice(:color, :colors)) handle_errors do completion_candidates(kind, Array(extra)).each { |c| terminal.say c } CLI.record_outcome(Outcome.new(exit_code: 0)) end end |