From 525e49989f2c2d799df161cce1924aa71c071a0a Mon Sep 17 00:00:00 2001 From: Joe Prosser Date: Mon, 25 Sep 2023 16:19:03 +0100 Subject: [PATCH] post review fixup --- cli/src/commands/create/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cli/src/commands/create/mod.rs b/cli/src/commands/create/mod.rs index e51f10ae..9fb1b84b 100644 --- a/cli/src/commands/create/mod.rs +++ b/cli/src/commands/create/mod.rs @@ -64,9 +64,13 @@ pub enum CreateArgs { /// Set a new value for a quota Quota(CreateQuotaArgs), - #[structopt(name = "streams")] + #[structopt(name = "stream")] /// Create a stream Stream(CreateStreamsArgs), + + #[structopt(name = "streams")] + /// Create streams + Streams(CreateStreamsArgs), } pub fn run( @@ -90,6 +94,8 @@ pub fn run( stream_exception::create(&client, stream_exception_args, printer) } CreateArgs::Quota(quota_args) => quota::create(&client, quota_args), - CreateArgs::Stream(stream_args) => streams::create(&client, stream_args), + CreateArgs::Stream(stream_args) | CreateArgs::Streams(stream_args) => { + streams::create(&client, stream_args) + } } }