feat: finish django cli and add aliases

Implemented basic wanted functionality for django subcommands.

Added single or two letter aliases for all subsubcommands.
This commit is contained in:
2023-05-23 22:49:18 +02:00
parent 907740fc5a
commit 286e16e7ce
8 changed files with 112 additions and 19 deletions

View File

@@ -5,12 +5,14 @@ use clap::Subcommand;
#[derive(Subcommand, Debug)]
pub enum Postgres {
/// Import dump via pg_restore
#[clap(alias("i"))]
Import {
#[arg(value_enum)]
path: PathBuf,
},
/// Dump via pg_dump with format=c
#[clap(alias("d"))]
Dump {
#[arg(value_enum)]
path: PathBuf,