aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-06-13 15:56:48 +0200
committerAlex Auvolat <alex@adnab.me>2023-06-13 15:56:48 +0200
commit7126f3e1d1fa7238788c23d01ec9f67b132e5f50 (patch)
treedb95f5b935c49c62d269234f7bbb7079b871869b /src/garage/cli
parent942c1f1bfe138cbc4e49540cede852e4d462590e (diff)
downloadgarage-7126f3e1d1fa7238788c23d01ec9f67b132e5f50.tar.gz
garage-7126f3e1d1fa7238788c23d01ec9f67b132e5f50.zip
garage key import: add checks and `--yes` CLI flag (fix #278)
Diffstat (limited to 'src/garage/cli')
-rw-r--r--src/garage/cli/structs.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/garage/cli/structs.rs b/src/garage/cli/structs.rs
index 5dc99a0d..2547fb8d 100644
--- a/src/garage/cli/structs.rs
+++ b/src/garage/cli/structs.rs
@@ -408,6 +408,10 @@ pub struct KeyImportOpt {
/// Key name
#[structopt(short = "n", default_value = "Imported key")]
pub name: String,
+
+ /// Confirm key import
+ #[structopt(long = "yes")]
+ pub yes: bool,
}
#[derive(Serialize, Deserialize, StructOpt, Debug, Clone)]