feat: rename commands and remove aliases in favour of completion

BREAKING CHANGE: changed commands as follows
D -> Docker
Dc -> Compose
Dj -> Django
Pg -> Postgres
This commit is contained in:
2023-05-27 13:30:09 +02:00
parent 61e7556997
commit de5e6b4d10
7 changed files with 8 additions and 24 deletions

View File

@@ -7,7 +7,6 @@ use clap::Parser;
#[derive(Parser, Debug)]
pub enum Django {
/// Prepare empty management command 'command' in app 'app'.
#[clap(alias("mc"))]
MakeCommand {
#[arg(value_enum)]
app: PathBuf,
@@ -16,24 +15,20 @@ pub enum Django {
},
/// Run Django's manage.py makemigrations.
#[clap(alias("mm"))]
Makemigrations,
/// Pass arguments to Django's manage.py.
#[clap(alias("m"))]
Manage {
#[arg(value_enum)]
rest: Vec<String>,
},
/// Run Django's manage.py migrate.
#[clap(alias("mg"))]
Migrate {
#[arg(value_enum)]
rest: Vec<String>,
},
/// Run Django's manage.py shell.
#[clap(alias("s"))]
Shell,
}