MCPcopy Create free account
hub / github.com/GCWing/BitFun / getMode

Function getMode

BitFun-Installer/scripts/build-installer.cjs:30–37  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

28const MIN_APP_EXE_BYTES = 5 * 1024 * 1024;
29
30function getMode(args) {
31 if (args.includes("--fast")) return "fast";
32 const modeFlagIndex = args.indexOf("--mode");
33 if (modeFlagIndex >= 0 && args[modeFlagIndex + 1]) {
34 return args[modeFlagIndex + 1].trim();
35 }
36 return "release";
37}
38
39const buildMode = getMode(rawArgs);
40const validModes = new Set(["fast", "release"]);

Callers 1

Calls 2

includesMethod · 0.80
trimMethod · 0.80

Tested by

no test coverage detected