Cherry.CLI.Registry (cherry v0.1.0-rc.1)

Copy Markdown View Source

Maps CLI verbs to their Cherry.CLI.Command modules.

Deliberately a compile-time map: the verb surface is part of Cherry's public API and changes to it belong in code review, not runtime plugins.

Summary

Functions

Looks up the command module for a verb.

All known verbs, sorted, for help and error output.

Functions

fetch(verb)

@spec fetch(String.t()) :: {:ok, module()} | :error

Looks up the command module for a verb.

verbs()

@spec verbs() :: [String.t()]

All known verbs, sorted, for help and error output.