1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-12-05 23:08:14 +02:00

Add --require-solutions option to dev check

This commit is contained in:
mo8it
2024-06-02 00:11:41 +02:00
parent 6ae4a979f4
commit 08ac11ff22
2 changed files with 13 additions and 5 deletions

View File

@@ -19,7 +19,11 @@ pub enum DevCommands {
no_git: bool,
},
/// Run checks on the exercises
Check,
Check {
/// Require that every exercise has a solution
#[arg(short, long)]
require_solutions: bool,
},
/// Update the `Cargo.toml` file for the exercises
Update,
}
@@ -34,7 +38,7 @@ impl DevCommands {
new::new(&path, no_git).context(INIT_ERR)
}
Self::Check => check::check(),
Self::Check { require_solutions } => check::check(require_solutions),
Self::Update => update::update(),
}
}