feat(cli): add connection command with DSN and human formats

This commit is contained in:
hdbg
2025-12-06 19:56:38 +01:00
parent c45e9305e5
commit 676c53fabb
7 changed files with 173 additions and 30 deletions

View File

@@ -34,10 +34,15 @@ async fn main() -> Result<()> {
ControlCommands::Start => {}
ControlCommands::Stop => {}
ControlCommands::Restart => {}
ControlCommands::Destroy => {}
ControlCommands::Destroy { accept } => {}
ControlCommands::Logs { follow } => todo!(),
ControlCommands::Status => {}
ControlCommands::Connection { format: _ } => {}
// can't override an instance for this command, because password is in config
ControlCommands::Connection { format } => {
let ctx = Context::new(None).await?;
Controller::new(ctx).show_connection(format).await?;
}
ControlCommands::Wipe { accept } => {}
},
}