This commit is contained in:
nora 2025-10-17 22:21:28 +02:00
commit 93553d8aae
10 changed files with 218 additions and 0 deletions

13
toggle.js Normal file
View file

@ -0,0 +1,13 @@
const fs = require("fs");
const c = fs.readFileSync("src/main.rs", "utf-8").split("\n");
const one = c.findIndex(l => l.includes("// 1"));
if (c[one + 1].includes("// 2")) {
c.splice(one + 1, 1);
} else {
c.splice(one + 1, 0, " // 2")
}
fs.writeFileSync("src/main.rs", c.join("\n"));