use std::path::PathBuf; use clap::Subcommand; // TODO: (matej) dsu template command #[derive(Subcommand, Debug)] pub enum Django { /// Start a bash session in a fresh django container Bash, /// Prepare an empty management command NAME in the app at APP MakeCommand { app: PathBuf, name: String }, /// Run Django's manage.py makemigrations Makemigrations, /// Pass arguments to Django's manage.py Manage { #[arg(trailing_var_arg = true, allow_hyphen_values = true)] rest: Vec, }, /// Run Django's manage.py migrate Migrate { #[arg(trailing_var_arg = true, allow_hyphen_values = true)] rest: Vec, }, /// Run a command in a fresh django container, through its entrypoint Run { #[arg(trailing_var_arg = true, allow_hyphen_values = true)] rest: Vec, }, /// Run Django's manage.py shell Shell, }