Class: Hanami::CLI::Registry::Prefix
- Inherits:
-
Object
- Object
- Hanami::CLI::Registry::Prefix
- Defined in:
- gems/gems/hanami-cli-0.3.1/lib/hanami/cli/registry.rb
Overview
Command name prefix
Instance Method Summary collapse
Instance Method Details
#register(name, command, aliases: [], **options) ⇒ Object
Source: | on GitHub
def register(name, command, aliases: [], **) command_name = "#{prefix} #{name}" registry.set(command_name, command, aliases, **) end |