summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-22 00:45:16 +0200
committermo8it <mo8it@proton.me>2024-04-22 00:45:16 +0200
commit86684b7fc9dd5e8bedad6056565645d1d980925c (patch)
treebb6765ec7de717615dd7fe0fb1ad3affdc7835f9 /src
parent4ce2714da1f079e81b6887b52b1acfbc283a3d63 (diff)
Document dev commands
Diffstat (limited to 'src')
-rw-r--r--src/dev.rs5
-rw-r--r--src/main.rs5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/dev.rs b/src/dev.rs
index d7f9af6..38338cd 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -11,12 +11,17 @@ mod update;
#[derive(Subcommand)]
pub enum DevCommands {
+ /// Create a new project for third-party Rustlings exercises
New {
+ /// The path to create the project in
path: PathBuf,
+ /// Don't initialize a Git repository in the project directory
#[arg(long)]
no_git: bool,
},
+ /// Run checks on the exercises
Check,
+ /// Update the `Cargo.toml` file for the exercises
Update,
}
diff --git a/src/main.rs b/src/main.rs
index f52699c..9ff218a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -54,7 +54,7 @@ struct Args {
enum Subcommands {
/// Initialize Rustlings
Init,
- /// Run a single exercise. Runs the next pending exercise if the exercise name is not specified.
+ /// Run a single exercise. Runs the next pending exercise if the exercise name is not specified
Run {
/// The name of the exercise
name: Option<String>,
@@ -64,11 +64,12 @@ enum Subcommands {
/// The name of the exercise
name: String,
},
- /// Show a hint. Shows the hint of the next pending exercise if the exercise name is not specified.
+ /// Show a hint. Shows the hint of the next pending exercise if the exercise name is not specified
Hint {
/// The name of the exercise
name: Option<String>,
},
+ /// Commands for developing (third-party) Rustlings exercises
#[command(subcommand)]
Dev(DevCommands),
}