Disable init command during development

This commit is contained in:
mo8it
2024-04-18 11:28:28 +02:00
parent 2e9b9a9f13
commit 1eac00e89a
2 changed files with 14 additions and 2 deletions
+4
View File
@@ -79,6 +79,10 @@ fn main() -> Result<()> {
match args.command {
Some(Subcommands::Init) => {
if DEVELOPING_OFFICIAL_RUSTLINGS {
bail!("Disabled while developing the official Rustlings");
}
return init::init().context("Initialization failed");
}
Some(Subcommands::Dev(dev_command)) => return dev_command.run(),