style: normalise command help
This commit is contained in:
@@ -2,7 +2,7 @@ use super::{Django, Link, Postgres};
|
|||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use clap_complete::Shell;
|
use clap_complete::Shell;
|
||||||
|
|
||||||
/// A program for interacting with various dockerized applications.
|
/// A program for interacting with various dockerized applications
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[command(author, version, about, long_about=None)]
|
#[command(author, version, about, long_about=None)]
|
||||||
pub struct Ahab {
|
pub struct Ahab {
|
||||||
|
|||||||
@@ -9,19 +9,19 @@ pub enum Django {
|
|||||||
/// Start a bash session in a fresh django container
|
/// Start a bash session in a fresh django container
|
||||||
Bash,
|
Bash,
|
||||||
|
|
||||||
/// Prepare empty management command 'command' in app 'app'.
|
/// Prepare empty management command 'command' in app 'app'
|
||||||
MakeCommand { app: PathBuf, name: String },
|
MakeCommand { app: PathBuf, name: String },
|
||||||
|
|
||||||
/// Run Django's manage.py makemigrations.
|
/// Run Django's manage.py makemigrations
|
||||||
Makemigrations,
|
Makemigrations,
|
||||||
|
|
||||||
/// Pass arguments to Django's manage.py.
|
/// Pass arguments to Django's manage.py
|
||||||
Manage {
|
Manage {
|
||||||
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
|
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
|
||||||
rest: Vec<String>,
|
rest: Vec<String>,
|
||||||
},
|
},
|
||||||
|
|
||||||
/// Run Django's manage.py migrate.
|
/// Run Django's manage.py migrate
|
||||||
Migrate {
|
Migrate {
|
||||||
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
|
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
|
||||||
rest: Vec<String>,
|
rest: Vec<String>,
|
||||||
@@ -33,9 +33,9 @@ pub enum Django {
|
|||||||
rest: Vec<String>,
|
rest: Vec<String>,
|
||||||
},
|
},
|
||||||
|
|
||||||
/// Run Django's manage.py shell.
|
/// Run Django's manage.py shell
|
||||||
Shell,
|
Shell,
|
||||||
|
|
||||||
/// Run Django's manage.py test.
|
/// Run Django's manage.py test
|
||||||
Test,
|
Test,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user