summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-18 11:28:28 +0200
committermo8it <mo8it@proton.me>2024-04-18 11:28:28 +0200
commit1eac00e89ae9e0ed6969f5036e9c8c43e4435e86 (patch)
tree833bd7b226d64ad8d52b641a276e7e9a304f9d9c /src/main.rs
parent2e9b9a9f130c89e9b2856f17c24cdab841929b28 (diff)
Disable init command during development
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 3f3fbc1..d40f978 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -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(),