Repository navigation
fix(plugin): name plugin install when mate plugin has no subcommand - #227
Merged
Merged
Conversation
Bare `mate plugin` printed "Unknown plugin command: " with an empty name and the whole global usage. It now prints one line naming `mate plugin install <package>` and exits 1. An unknown subcommand keeps its answer. The plugin test file also reset process.exitCode to undefined, which Bun ignores, so the file exited 1 with every test passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes one problem from the 2026-12-02 friction sweep (change
name-the-plugin-subcommand).Bare
mate plugintreated the missing subcommand as an unknown one:The wording follows
mate capwithout a name (mate: capability name required. Usemate cap <...>.). The--helpevents of this fingerprint were already fixed by 93bb3ed.plugin.test.tsalso resetprocess.exitCodetoundefinedafter each test. Bun ignores that, so the file exited 1 with every test passing. It now resets to?? 0.Evidence
mate plugin→Unknown plugin command:with an empty name, then the whole global usage on stderr, exit 1.runPluginCommand(undefined, [])writes onlymate: plugin command required. Usemate plugin install.and sets exit code 1.src/cli/commands/plugin/plugin.test.tsadds two tests:bun run format,bun run lint,bun run typecheckpass;packages/mate-corebun run test: 7004 pass, 22 skip, 0 fail.OpenSpec change:
name-the-plugin-subcommandFriction: command:plugin:1 (the bare
mate pluginevent; its--helpevents were fixed by 93bb3ed)