aboutsummaryrefslogtreecommitdiff
path: root/src/garage/cli.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-15 19:14:26 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-15 19:14:26 +0100
commit5ee1d956b6c7dd847a304ef524253b2e067e1245 (patch)
tree0dcaf522847fae7e105950c3f25886f5f5afa91c /src/garage/cli.rs
parent537f652fec479c7c5676bba14c23ea6634613122 (diff)
downloadgarage-5ee1d956b6c7dd847a304ef524253b2e067e1245.tar.gz
garage-5ee1d956b6c7dd847a304ef524253b2e067e1245.zip
Allow manipulation of keys by their shorthand in the CLI
Diffstat (limited to 'src/garage/cli.rs')
-rw-r--r--src/garage/cli.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/garage/cli.rs b/src/garage/cli.rs
index b5c91ffc..e74f59a2 100644
--- a/src/garage/cli.rs
+++ b/src/garage/cli.rs
@@ -157,9 +157,9 @@ pub struct DeleteBucketOpt {
#[derive(Serialize, Deserialize, StructOpt, Debug)]
pub struct PermBucketOpt {
- /// Access key ID
+ /// Access key name or ID
#[structopt(long = "key")]
- pub key_id: String,
+ pub key_pattern: String,
/// Allow/deny read operations
#[structopt(long = "read")]
@@ -198,8 +198,8 @@ pub enum KeyOperation {
#[derive(Serialize, Deserialize, StructOpt, Debug)]
pub struct KeyOpt {
- /// ID of the key
- pub key_id: String,
+ /// ID or name of the key
+ pub key_pattern: String,
}
#[derive(Serialize, Deserialize, StructOpt, Debug)]
@@ -211,8 +211,8 @@ pub struct KeyNewOpt {
#[derive(Serialize, Deserialize, StructOpt, Debug)]
pub struct KeyRenameOpt {
- /// ID of the key
- pub key_id: String,
+ /// ID or name of the key
+ pub key_pattern: String,
/// New name of the key
pub new_name: String,
@@ -220,8 +220,8 @@ pub struct KeyRenameOpt {
#[derive(Serialize, Deserialize, StructOpt, Debug)]
pub struct KeyDeleteOpt {
- /// ID of the key
- pub key_id: String,
+ /// ID or name of the key
+ pub key_pattern: String,
/// Confirm deletion
#[structopt(long = "yes")]