Skip to content

Commit ed502db

Browse files
committed
use clap alias...
1 parent 1fdc93c commit ed502db

File tree

1 file changed

+2
-9
lines changed
  • crates/fluvio-cluster/src/cli

1 file changed

+2
-9
lines changed

crates/fluvio-cluster/src/cli/mod.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,9 @@ pub enum ClusterCmd {
9191
#[command(name = "status")]
9292
Status(StatusOpt),
9393

94-
/// Shutdown cluster processes without deleting data
95-
#[command(name = "shutdown")]
94+
/// Shutdown cluster processes without deleting data (alias: stop)
95+
#[command(name = "shutdown", alias = "stop")]
9696
Shutdown(ShutdownOpt),
97-
98-
/// Alias for shutdown
99-
#[command(name = "stop")]
100-
Stop(ShutdownOpt),
10197
}
10298

10399
impl ClusterCmd {
@@ -173,9 +169,6 @@ impl ClusterCmd {
173169
Self::Shutdown(opt) => {
174170
opt.process().await?;
175171
}
176-
Self::Stop(opt) => {
177-
opt.process().await?;
178-
}
179172
}
180173

181174
Ok(())

0 commit comments

Comments
 (0)