feat(cmd): normalize Forge command dispatch #149

Merged
barrettruth merged 1 commit from fix/canonical-forge-cmd into main 2026-04-11 20:00:04 +00:00
barrettruth commented 2026-04-11 19:58:53 +00:00

Problem

origin/main is failing the LuaLS warning-level type check, and the current :Forge entrypoint still relies on an ad hoc parser in plugin/forge.lua that duplicates parsing, validation, dispatch, and completion logic.

Solution

Add a dedicated forge.cmd module that owns the command schema, normalized parsing, strict bang validation, dispatch, and completion for the existing :Forge surface. Reduce plugin/forge.lua to command registration and plug setup, add parser and integration coverage, and make the default key tables explicit enough to satisfy the warning-level LuaLS CI check on main.

## Problem `origin/main` is failing the LuaLS warning-level type check, and the current `:Forge` entrypoint still relies on an ad hoc parser in `plugin/forge.lua` that duplicates parsing, validation, dispatch, and completion logic. ## Solution Add a dedicated `forge.cmd` module that owns the command schema, normalized parsing, strict bang validation, dispatch, and completion for the existing `:Forge` surface. Reduce `plugin/forge.lua` to command registration and plug setup, add parser and integration coverage, and make the default key tables explicit enough to satisfy the warning-level LuaLS CI check on `main`.
Sign in to join this conversation.
No description provided.