Repository navigation
Conversation
Reorder the cloud and local command enums so help lists entry points and main resources first, add a Subcommand order rule to the cli-help-text skill, and pin the order at the top level, cloud and local with a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sdairs
force-pushed
the
claude/1158-pin-subcommand-order
branch
from
October 30, 2026 17:27
18cd970 to
2d07c19
Compare
This branch has not been deployed
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.
Closes #1158. Stacked on #1169.
Summary
--helplists subcommands in enum declaration order. Until now that order was just whatever order variants were added in, which is whycloud --helplistedudffirst. This PR pins the order for the top three levels.cloudlocaldisplay_order, so declaration order stays the single source of truth. The diff is 123 lines added and 123 removed, and a script check confirmed the moved lines are identical before and after.cli-help-textskill says to order variants rather than usedisplay_order, gives the ordering rule, and notes that a test pins the order.cli::tests::top_level_subcommands_keep_their_help_orderasserts the visible subcommand names at all three levels. It skips hidden commands and expectstelemetryonly when that feature is on.cloud service) waits until the Split oversized Cloud domain modules into directories #1157 module splits land.Tests
fmt, both clippy configurations, the
--no-default-featurescheck,cargo test -p clickhousectland the Python classifier tests all pass.🤖 Generated with Claude Code
Note
Low Risk
Help-only reordering with a regression test; no parsing, dispatch, or API behavior changes.
Overview
Pins
--helpsubcommand lists by reordering clap enum variants (declaration order is the only control—nodisplay_order).cloudhelp now lists auth and core resources first (udfno longer appears first);localhelp leads withinit, then ClickHouse/Postgres workflows, and pushes version tooling (install,list,use,which,remove) later.Adds a "Subcommand order" section to the
cli-help-textskill andtop_level_subcommands_keep_their_help_orderincli.rs, which asserts visible subcommand names at the root,cloud, andlocallevels (includingtelemetrywhen enabled).Reviewed by Cursor Bugbot for commit 2d07c19. Bugbot is set up for automated code reviews on this repo. Configure here.