-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
The built-in first-class command debug-keys is unreachable because the legacy-like syntax classifier rejects any hyphenated top-level token before command routing.
Steps to Reproduce
- Run
ggc debug-keys - Observe output:
Error: legacy-like syntax is not supported.Use unified subcommands. See: ggc help <command>
Expected Behavior
debug-keys should execute normally (or show its command help), because it is a registered first-class command.
Screenshots
N/A
Environment
- OS: Darwin 25.2.0
- Go Version: go1.25.7 darwin/arm64
- ggc Version: v1.0.0
- git Version (run
git --version): 2.39.5 (Apple Git-154)
Additional Context
debug-keys is registered in the command registry, but isLegacyLike() currently classifies any hyphenated top-level command as legacy syntax and exits before router dispatch.
Relevant locations:
cmd/cmd.go(legacy-like detection)cmd/command/registry.go(debug-keysregistration)
closes #339
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working