fix(sem-cli): diff --format now uses the OutputFormat Enum directly#92
Merged
rs545837 merged 3 commits intoAtaraxy-Labs:mainfrom Apr 24, 2026
Merged
fix(sem-cli): diff --format now uses the OutputFormat Enum directly#92rs545837 merged 3 commits intoAtaraxy-Labs:mainfrom
rs545837 merged 3 commits intoAtaraxy-Labs:mainfrom
Conversation
removed repeated docs (clap already prints possible values)
There was a problem hiding this comment.
inspect review
Triage: 2 entities analyzed | 0 critical, 0 high, 2 medium, 0 low
Verdict: standard_review
Findings (1)
- [low]
--formatno longer accepts previously supported aliasmd(and any other non-canonical values) because the manual mapping ("markdown" | "md" => OutputFormat::Markdown) was removed andformatis now parsed directly asOutputFormatviaclap::ValueEnumwith no alias annotations in the diff. This is a breaking CLI behavior change for scripts/users relying on--format md. Evidence: removed match arm for"md"; added#[derive(..., clap::ValueEnum)]and changedformat: String->format: OutputFormat.
Reviewed by inspect | Entity-level triage found 0 high-risk changes
Contributor
Author
|
Oh, I didn't notice the |
There was a problem hiding this comment.
inspect review
Triage: 3 entities analyzed | 0 critical, 0 high, 3 medium, 0 low
Verdict: standard_review
Findings (0)
Reviewed by inspect | Entity-level triage found 0 high-risk changes
There was a problem hiding this comment.
inspect review
Triage: 3 entities analyzed | 0 critical, 0 high, 3 medium, 0 low
Verdict: standard_review
Findings (1)
- [low] CLI behavior change: unknown
--formatvalues previously fell back toTerminal, but nowformat: OutputFormat(withclap::ValueEnum) will cause clap to reject invalid values at argument parsing time (removed_ => OutputFormat::Terminalfallback inmain.rs). Evidence:format: String+ manualmatch ... _ => OutputFormat::Terminalremoved; replaced withformat: OutputFormatand passed through directly.
Reviewed by inspect | Entity-level triage found 0 high-risk changes
Member
|
Thanks for reporting this and opening the PR. |
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.
Changelog
Changed
diff --formatnow usesOutputFormatdirectly.Removed
CLI Help Output
Shell Completions
This also fixes the generated shell completions
Proper Error Output
Before, an invalid format would fall back to Terminal. Now it throws a proper error including all the valid values.