Skip to content

Commit 4271625

Browse files
feat: interactive prompts and smart patch selection (#37)
* feat: add interactive prompts and smart patch selection - Add shared confirm() and select_one() prompt utilities to output.rs - Smart patch selection: paid users auto-select best paid patch per PURL, free users with multiple patches get dialoguer interactive selection - Default-YES confirmation prompts (Y/n) for get, scan, and remove - Add -y/--yes flag to scan and remove commands to skip prompts - JSON mode never prompts; returns selection_required error with full vulnerability details when explicit selection is needed - Scan now shows detailed patch summary (severity, CVEs, descriptions) before confirming download - Remove shows what will be removed before confirming rollback - Extract download_and_apply_patches() shared between get and scan - Add patch update detection in scan table and download flow Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: resolve clippy lints for CI - Use is_none_or instead of map_or(true, ...) - Use .values() instead of destructuring with unused key Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 485aa3b commit 4271625

File tree

5 files changed

+754
-227
lines changed

5 files changed

+754
-227
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)