class

Hwaro::CLI::CommandRegistry

Inherits Reference < Object

Command registry: the built-in commands, filled by Runner#register_default_commands at startup.

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
names

Get all registered command names

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

Register a command with its handler and metadata

Source