refactor(cli): rename Connection command to Conn for brevity
This commit is contained in:
@@ -48,7 +48,7 @@ pub enum ControlCommands {
|
||||
follow: bool,
|
||||
},
|
||||
/// (Sensitive) get connection details
|
||||
Connection {
|
||||
Conn {
|
||||
#[arg(short, long, default_value = "dsn")]
|
||||
format: ConnectionFormat,
|
||||
},
|
||||
|
||||
@@ -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?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user