Edward Langley 89fdb27d6c refactor(command): switch to prototype-based command registration
Refactor command registry to use prototype-based registration instead of
string-based names. This makes the API more consistent and type-safe.

Changes:
- Changed Cmd::name() to return &'static str instead of &str
- Updated CmdRegistry::register, register_pure, and register_nullary to accept
  prototype command instances instead of string names
- Added NamedCmd helper struct for cases where command is built by closure
- Updated all command implementations to return static string literals
- Modified EnterMode::execute to clear buffers when entering text-entry modes

Co-Authored-By: fiddlerwoaroof/git-smart-commit (unsloth/Qwen3.5-35B-A3B-GGUF:Q5_K_M)
2026-04-04 18:37:43 -07:00
2026-03-31 00:08:28 -07:00
2026-04-02 16:21:45 -07:00
2026-04-03 23:07:13 -07:00
2026-04-02 11:34:22 -07:00
2026-04-03 13:44:26 -07:00
Description
No description provided
626 KiB
Languages
Rust 99.1%
Python 0.6%
Nix 0.3%