Repository navigation
feat(dg): plain help text, spelled-out plurals, rounded prices and a help lint (E2) - #378
Merged
Merged
Conversation
…help lint Rewrite dg help and notes that leaked internal names (forge-v2, gh-shaped, headUpdate, forkOf, starBeat, config.backend, consensus, client rule, on chain, recovery words), split the longest command summaries into a summary and a details paragraph, and spell out every (s) plural in dg output with fmt::plural. Prices in cost lines are rounded to three significant figures (~0.0102 DASH, not ~0.01017812 DASH); --json keeps exact credits. Add help_lint tests: every command summary and flag help is checked against the style guide's banned list, and dg --help is compared with tests/snapshots/dg-help.txt (DG_UPDATE_SNAPSHOTS=1 rewrites it). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Round prices with forge_core::user_error::dash so a tiny fee never shows as ~0, keep exact amounts in dg cost, lint long help and value help too, finish the branch-policy, archive and recovery-phrase wording, spell out the doctor address plural, and count newer contract revisions by contract. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Human output read 'Fi8b…44 characters… (alice.dash)'. It now reads 'alice.dash (Fi8bQ2xk…)'; ids without a name stay in full, and --json keeps full ids. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (33)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Round prices to three significant figures at every size, print dg cost to the credit so its rows add up, say recovery phrase in every CLI message, keep dg collab list's roles aligned when names are shown, lint after-help and report each long-help problem once, and test the group notice's count by contract. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Both came in from master. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Brings #390's contract snapshot (sakura runs UPDATE-1) and the latest master; conflicts resolved keeping both sides. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Oct 5, 2026
A summary under 40 words with the details below it, and recovery phrase rather than recovery words, as the help lint from master (#378) requires. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
What
The
dghalf of epic E2 (Voice): help and output a maintainer would write.headUpdate,forkOf,starBeat,config.backend, "consensus", "client rule", "on chain" and "recovery words". The top line is now "Work with Dash Forge from the command line". Long command summaries are split into a short summary and a details paragraph, sodg --helpfits on one line per command.dg repo policyoutput, matching the web's chip. A refused merge still says that nothing was pushed and no merge event was posted.(s)plurals in output usefmt::plural/fmt::plural_with("2 assets", "1 address"). A few older inlineif n == 1 { "" } else { "s" }spots already spell plurals correctly and are left as they are.~0.0102 DASH, not~0.01017812 DASH). A tiny fee never shows as~0.dg costanddg cost auditprint amounts to the credit so their rows still add up.--jsonkeeps exact credits.alice.dash (Fi8bQ2xk…)instead of the 44-character id followed by the name. An identity with no name still prints its full id.--jsonkeeps full ids.src/help_lint.rstests every command's summary and details, every flag's help, and every value's help against the style guide's banned list. It also comparesdg --helpwithtests/snapshots/dg-help.txt(DG_UPDATE_SNAPSHOTS=1rewrites it).Why
The agent-isms review (R1, R4, R10) found protocol jargon in
dghelp, 218 lazy(s)plurals, 8-decimal prices and full identity ids printed next to the names that identify them. The web copy is in #369. This PR applies the same rules to the CLI and adds the test that keeps them in place.How tested
cargo fmt --check,cargo clippy --workspace --all-targets -D warningsandcargo test --workspacepass locally.e8834b5b:~0for tiny feesdg costaddress(es)pluralnow callsplural_with)fc746810:0.00517, not0.0052;32.5, not32.54)dg costprints amounts to the credit, so its rows add updg collab listkeeps its role column aligned when some members show a namedg,dg repo staranddg repo policy, pluscollab list,release list,issue listandrepo liston forge-v2-demo. The output is in/Users/pasta/workspace/dash-forge-qa/evidence/p0/voice/dg/after.txt.Limits
🤖 Generated with Claude Code