Repository navigation
fix(cli): clean up CLI output, inline help, and error formatting - #389
Merged
Merged
Conversation
Merged
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
Overhauls CLI output, parse/error formatting, spinner/stderr noise, and help copy across
patchula-cli:apply, TUI summaries). Operational messages (spinner, errors, prompts,--help, TUI chrome) are plain and direct.--helpstep: Barepatchulaprints root help directly (arg_required_else_help); parse errors printerror:plus the failing command's short help inline (withoutFor more information, try '--help'.), and emit JSON on stdout when--jsonis set.error:/hint:lines matching flag parse errors;miettesource-snippet boxes remain for Pkl config/settings errors.patchula remoteruns; prints cache status only when cold, partly cold, or with-v; suppresses stderr chatter under--jsonand interactivetui(including never prompting for missing config under--json).patchula applystreams & flags: Writes normal/--checksummaries tostdoutand--dry-runsummaries tostderrsostdoutstays a clean diff; validates--manageras an enum; hides--allow-lockfile-pending; fixes misplaced--copierhints.--helptagline, root-only exit codes/subcommand hint, exact flag/env names inserveerrors, unified TUIBlockedstate for key bar/messages,<name> in <file>on all skipped-update reasons, and updated snapshots/docs.Verification
cargo test --locked -p patchula-cli(97 unit tests + 17 integration tests)mise run lint(cargo-fmt,clippy,secrets,zizmor,nu-lint)mise run help:snapshot,mise run docs:cli,mise run docs:build