fix(cli): plugin commands listed but never dispatched in bin/moko #236
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
bin/moko's loadPluginCommands() (lines 316-364) discovers plugin commands via getCommands() and displays them in the help listing, but never actually routes them for execution.
When a user runs a plugin-provided command, bin/moko returns "Unknown command" because only COMMAND_MAP entries are dispatched (line 200).
Related
Proposal
Acceptance Criteria
Branch created:
feature/236-fix-cli-plugin-commands-listed-but-neverPlugin command dispatch implemented in
bin/moko. After COMMAND_MAP lookup fails,loadPluginCommands()is called as fallback. Plugin commands with ascriptfield are now routable.