fix: CLI QA improvements — docs, display, auto-JSON#139
Merged
Conversation
- Fix docs/src/cli.md: replace all --edges with --graph to match actual CLI flag - Fix docs typo suggestion example to use a close misspelling that triggers the hint - Show full variant slash notation (Name/Graph/Weight) instead of diff-from-default - Remove dead variant_to_slash function and unused HashSet import - Deduplicate format_variant into shared variant_to_full_slash helper - Auto-output JSON when stdout is piped for data commands (reduce, solve, evaluate, inspect) - Add SpinGlass f64 weight inference from float syntax in --couplings/--fields - Remove duplicate [default: 1] in help text (clap already shows it) - Count reachable nodes (not unique problem names) in neighbor output Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
=======================================
Coverage 96.88% 96.88%
=======================================
Files 200 200
Lines 27537 27537
=======================================
Hits 26680 26680
Misses 857 857 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
docs/src/cli.md: replace all--edgeswith--graphto match actual CLI flag (14 occurrences)Name/Graph/Weight) instead of diff-from-defaultvariant_to_slashfunction and unusedHashSetimportformat_variantinto sharedvariant_to_full_slashhelper--couplings/--fields[default: 1]in help text (clap already shows it)Test plan
cargo test -p problemreductions-cli)pred create MIS --graph 0-1,1-2 | pred solve -workspred show MaximumIndependentSeshows "Did you mean" suggestionpred to MIS --hops 2shows full variant paths🤖 Generated with Claude Code