feat: prepare initial cli layout
Made initial command scopes d -> docker related commands dc -> docker compose related commands dj -> django related commands pg -> postgres related commands
This commit is contained in:
29
src/cli/django.rs
Normal file
29
src/cli/django.rs
Normal file
@@ -0,0 +1,29 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
pub enum Django {
|
||||
/// Prepare empty management command 'command' in app 'app'.
|
||||
MakeCommand {
|
||||
#[arg(value_enum)]
|
||||
app: PathBuf,
|
||||
#[arg(value_enum)]
|
||||
command: String,
|
||||
},
|
||||
|
||||
/// Run Django's manage.py makemigrations.
|
||||
Makemigrations,
|
||||
|
||||
/// Pass arguments to Django's manage.py.
|
||||
Manage {
|
||||
#[arg(value_enum)]
|
||||
rest: Vec<String>,
|
||||
},
|
||||
|
||||
/// Run Django's manage.py migrate.
|
||||
Migrate,
|
||||
|
||||
/// Run Django's manage.py shell.
|
||||
Shell,
|
||||
}
|
||||
Reference in New Issue
Block a user