Class: Hanami::CLI::Registry::Prefix

Inherits:
Object
  • Object
show all
Defined in:
gems/gems/hanami-cli-0.3.1/lib/hanami/cli/registry.rb

Overview

Command name prefix

Since:

  • 0.1.0

Instance Method Summary collapse

Instance Method Details

#register(name, command, aliases: [], **options) ⇒ Object

See Also:

Since:

  • 0.1.0

def register(name, command, aliases: [], **options)
  command_name = "#{prefix} #{name}"
  registry.set(command_name, command, aliases, **options)
end