Class: Ukiryu::CliCommands::ResolveCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Ukiryu::CliCommands::ResolveCommand
- Defined in:
- lib/ukiryu/cli_commands/resolve_command.rb
Overview
Resolve tool definitions
The resolve command shows which definition would be used for a tool.
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
-
#run(tool_name, version_constraint = nil) ⇒ Object
Execute the resolve command.
Methods inherited from BaseCommand
#apply_cli_options_to_config, #default_register_path, #initialize, #setup_register, #stringify_keys
Constructor Details
This class inherits a constructor from Ukiryu::CliCommands::BaseCommand
Instance Method Details
#run(tool_name, version_constraint = nil) ⇒ Object
Execute the resolve command
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ukiryu/cli_commands/resolve_command.rb', line 13 def run(tool_name, version_constraint = nil) if tool_name.nil? say 'Error: Tool name is required', :red say '', :clear say 'Usage: ukiryu resolve TOOL [VERSION_CONSTRAINT]', :white exit 1 end # Resolve the definition resolve_definition(tool_name, version_constraint) end |