Drop the redundant 'api' subcommand #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Plan 4: Drop the
apisubcommandGoal
joker query-domain-list -pattern '*'instead ofjoker api query-domain-list -pattern '*'What to change
cmd/joker/main.gocmd != "api"guard and theflag.Args()[1:]slice-off.flag.Args()directly torun().flag.Usageto drop theapi <api-command>layer; list commands directly.loginas a special case for now (Plan 6 addresses it).Backwards compat
The
apiprefix currently serves no purpose. There are no external callers documented.If you want a grace period, accept
apias a transparent alias that prints a deprecationwarning to stderr before stripping it.
Test impact
All
run()calls inconfig_test.goalready pass[]string{"login"}etc. withoutthe
apiprefix — they will work unchanged after this change.AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex