class

Hwaro::CLI::CommandRegistry

Inherits Reference / Object

Command registry for dynamic command management Allows plugins to register new commands at runtime

Class methods

all

List all commands with descriptions

Source
all_metadata

Get all command metadata

Source
description(name : String) : String

Get command description

Source
get(name : String) : Proc(Array(String), Nil) | Nil

Get a command handler by name

Source
get_metadata(name : String) : CommandInfo | Nil

Get command metadata by name

Source
has?(name : String) : Bool

Check if a command exists

Source
names

Get all registered command names

Source
register(metadata : CommandInfo, &handler : Array(String) -> Nil)

Register a command with its handler and metadata

Source