mirror of
https://github.com/Noratrieb/evaluate_obligation-fingerprints.git
synced 2026-01-15 18:55:01 +01:00
init
This commit is contained in:
commit
93553d8aae
10 changed files with 218 additions and 0 deletions
13
toggle.js
Normal file
13
toggle.js
Normal 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"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue