radicle-heartwood-lfs/crates/radicle-cli/src
Arthur Mariano 0bbedb9650 cli: Fix panic on `rad patch review` without options
When invoked without any of `--patch`, `--delete`, `--accept`,
or `--reject`, the command panicked.

It will now correctly return an error to use `--accept`, `--reject`,
or to supply a message.
Note that `--patch` and `--delete` are removed as these commands are
now obsolete.

The new doc test also documents two previously-untested behaviors
of `rad patch review`: neutral reviews (verdict=None with summary)
and the COB layer's silent no-op when a duplicate review is submitted
(see `test_patch_review_duplicate` in radicle-cli/tests/commands/patch.rs).

Fixes 8ceff5d4b8fa94bcbe243f9f8ef52138f65e495d

Signed-off-by: Arthur Mariano <arthvm@proton.me>
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2026-05-28 16:14:58 +01:00
..
commands cli: Fix panic on `rad patch review` without options 2026-05-28 16:14:58 +01:00
git oid: `const ZERO_SHA1` instead of `fn sha1_zero` 2026-04-28 14:35:38 +02:00
terminal rust/msrv: 1.85.0 → 1.88.0 2026-05-11 11:23:18 +01:00
commands.rs cli/help: remove the help module 2025-11-01 11:20:43 +01:00
common_args.rs radicle: Teach `rad sync` and `rad clone` to accept feature levels 2026-03-24 15:07:18 +00:00
git.rs rust/msrv: 1.85.0 → 1.88.0 2026-05-11 11:23:18 +01:00
lib.rs cli: Handle broken pipe (SIGPIPE) gracefully 2026-04-29 10:57:24 +02:00
main.rs log: New crate for logger implementations 2026-05-11 16:44:37 +01:00
node.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
pager.rs term, cli: `winsplit` over `shlex` on Windows 2026-02-11 10:26:22 +01:00
project.rs treewide: Spelling 2026-04-30 15:50:29 -04:00
terminal.rs rust/msrv: 1.85.0 → 1.88.0 2026-05-11 11:23:18 +01:00
warning.rs radicle: Warn less aggressively on IPv6 addresses 2026-05-21 14:52:35 +01:00