radicle-heartwood-lfs/crates/radicle-cli/tests/commands
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
..
checkout.rs cli/tests: Refactor checkout command tests 2026-03-11 10:51:57 +00:00
clone.rs treewide: Spelling 2026-04-30 15:50:29 -04:00
cob.rs treewide: Spelling 2026-04-30 15:50:29 -04:00
git.rs radicle/crefs: Support Symbolic References 2026-05-06 20:51:04 +02:00
id.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
inbox.rs cli/tests: Refactor inbox command tests 2026-03-11 10:51:57 +00:00
init.rs cli/tests: Refactor init command tests 2026-03-11 10:51:57 +00:00
issue.rs cli/tests: Refactor issue command tests 2026-03-11 10:51:57 +00:00
jj.rs cli: Amend jj tests 2026-04-29 13:51:11 +02:00
node.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
patch.rs cli: Fix panic on `rad patch review` without options 2026-05-28 16:14:58 +01:00
policy.rs treewide: Spelling 2026-04-30 15:50:29 -04:00
remote.rs treewide: Spelling 2026-04-30 15:50:29 -04:00
sigpipe.rs treewide: Spelling 2026-04-30 15:50:29 -04:00
sync.rs rust/edition/fmt: 2021 → 2024 2026-03-30 16:57:51 +02:00
utility.rs radicle: Warn less aggressively on IPv6 addresses 2026-05-21 14:52:35 +01:00
watch.rs cli/tests: Refactor watch command tests 2026-03-11 10:51:57 +00:00
workflow.rs cli/tests: Refactor workflow test 2026-03-11 10:51:57 +00:00