rad-inbox-clear: Add confirmation dialog
This patch adds a confirmation dialog to the potentially-destructive rad inbox clear command.
The default for this confirmation-dialog is set to “Y” for now, but I am of course open to change it to “N” by default - which would IMHO be a better idea for a potentially-destructive operation.
I opted for “Y” for now for better acceptance ;-)
2 files changed
+47
-17
e9245b63
→
9acdad64
modified crates/radicle-cli/src/commands/inbox.rs
@@ -50,7 +50,7 @@ pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -385,23 +385,37 @@ impl NotificationRow {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified crates/radicle-cli/src/commands/inbox/args.rs
@@ -2,6 +2,7 @@ use std::{fmt::Display, str::FromStr};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -139,6 +140,11 @@ pub(super) struct ClearArgs {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -151,8 +157,18 @@ pub(super) struct ClearArgs {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|