refactor(cli): rename Connection command to Conn for brevity

This commit is contained in:
hdbg
2025-12-06 20:35:25 +01:00
parent c6929255e3
commit 9de82fb71a
3 changed files with 141 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ pub enum ControlCommands {
follow: bool,
},
/// (Sensitive) get connection details
Connection {
Conn {
#[arg(short, long, default_value = "dsn")]
format: ConnectionFormat,
},

View File

@@ -41,7 +41,7 @@ async fn main() -> Result<()> {
}
ControlCommands::Status => {}
// can't override an instance for this command, because password is in config
ControlCommands::Connection { format } => {
ControlCommands::Conn { format } => {
let ctx = Context::new(None).await?;
Controller::new(ctx).show_connection(format).await?;
}