mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-04 17:23:36 +02:00
Disable init command during development
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user