feat: deprecate compose subcommand

This commit is contained in:
2026-09-04 14:35:57 +00:00
parent d11b0c68cd
commit 6e44527a9a
10 changed files with 43 additions and 109 deletions

View File

@@ -1,31 +1,35 @@
use std::path::PathBuf;
use clap::Parser;
use clap::Subcommand;
// TODO: (matej) dsu template command
#[derive(Parser, Debug)]
#[derive(Subcommand, Debug)]
pub enum Django {
/// Start a bash session in a fresh django container
Bash,
/// Prepare empty management command 'command' in app 'app'.
MakeCommand {
#[arg(value_enum)]
app: PathBuf,
#[arg(value_enum)]
name: String,
},
MakeCommand { app: PathBuf, name: String },
/// Run Django's manage.py makemigrations.
Makemigrations,
/// Pass arguments to Django's manage.py.
Manage {
#[arg(value_enum)]
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
rest: Vec<String>,
},
/// Run Django's manage.py migrate.
Migrate {
#[arg(value_enum)]
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
rest: Vec<String>,
},
/// Run a command in a fresh django container, through its entrypoint
Run {
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
rest: Vec<String>,
},