From 72663f27df49227c4b5783eae41d2fd7f929a96d Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Thu, 25 Jan 2024 10:45:35 -0800 Subject: [PATCH] fix(kv): shorten KV link store identifier to just 'store' Signed-off-by: Kate Goldenring --- src/commands/link.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/link.rs b/src/commands/link.rs index 05843a2..02e291f 100644 --- a/src/commands/link.rs +++ b/src/commands/link.rs @@ -39,8 +39,8 @@ pub struct KeyValueStoreLinkCommand { /// The app that will be using the key value store app: String, /// The key value store that the app will refer to by the label - #[clap(short = 's', long = "key-value-store")] - key_value_store: String, + #[clap(short = 's', long = "store")] + store: String, } impl LinkCommand { @@ -95,7 +95,7 @@ impl KeyValueStoreLinkCommand { .collect::>(); link( client, - &self.key_value_store, + &self.store, &self.app, &self.label, app_id, @@ -471,7 +471,7 @@ mod link_tests { async fn test_key_value_store_link_error_store_does_not_exist() -> Result<()> { let command = KeyValueStoreLinkCommand { app: "app".to_string(), - key_value_store: "does-not-exist".to_string(), + store: "does-not-exist".to_string(), label: "label".to_string(), common: Default::default(), }; @@ -497,7 +497,7 @@ mod link_tests { async fn test_key_value_store_link_succeeds_when_store_exists() -> Result<()> { let command = KeyValueStoreLinkCommand { app: "app".to_string(), - key_value_store: "kv1".to_string(), + store: "kv1".to_string(), label: "label".to_string(), common: Default::default(), };