diff --git a/internal/cli/completions.go b/internal/cli/completions.go index 3620ad2ac..9c0326876 100644 --- a/internal/cli/completions.go +++ b/internal/cli/completions.go @@ -59,7 +59,7 @@ var completionRoot = completionNode{ {names: []string{"delete", "rm"}}, {names: []string{"edit"}}, {names: []string{"path"}}, }}, {names: []string{"plugins", "plugin"}, children: []completionNode{ - {names: []string{"list"}}, {names: []string{"add"}}, {names: []string{"remove", "rm"}}, + {names: []string{"list"}}, {names: []string{"add"}}, {names: []string{"info"}}, {names: []string{"remove", "rm"}}, }}, {names: []string{"backends", "backend"}, children: leafNodes("doctor")}, {names: []string{"skills", "skill"}, children: []completionNode{ diff --git a/internal/cli/completions_test.go b/internal/cli/completions_test.go index fc2acdec6..386ec3054 100644 --- a/internal/cli/completions_test.go +++ b/internal/cli/completions_test.go @@ -159,6 +159,8 @@ func TestCompletionTreeCoversAliasesNestingAndCommonFlags(t *testing.T) { assertCandidates(t, byPath["mcp oauth"], "login", "logout", "status") assertCandidates(t, byPath["sandbox grants"], "list", "allow", "deny", "revoke", "clear") assertCandidates(t, byPath["completions"], "bash", "zsh", "fish", "powershell", "elvish") + assertCandidates(t, byPath["plugins"], "list", "add", "info", "remove", "rm") + assertCandidates(t, byPath["plugin"], "list", "add", "info", "remove", "rm") } func assertCandidates(t *testing.T, got []string, wants ...string) {