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

@@ -36,13 +36,19 @@ pub enum ControlCommands {
/// Restart postgres instance
Restart,
/// (WARNING!) Destroy postgres instance
Destroy,
Destroy { accept: bool },
/// (WARNING!) Destruct database
Wipe { accept: bool },
/// Status of instance
Status,
/// View logs produced by postgres
Logs { follow: bool },
/// (Sensitive) get connection details
Connection { format: ConnectionFormat },
Connection {
#[arg(short, long, default_value = "dsn")]
format: ConnectionFormat,
},
}
#[derive(Subcommand)]