MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / resolveOpenMode

Function resolveOpenMode

ts/workflow-cli/cli/buildmode.ts:24–29  ·  view source on GitHub ↗
(argv: string[], env: NodeJS.ProcessEnv)

Source from the content-addressed store, hash-verified

22 * path from inside the repo.
23 */
24export function resolveOpenMode(argv: string[], env: NodeJS.ProcessEnv): OpenMode {
25 if (argv.includes("--static")) return "static";
26 if (argv.includes("--dev")) return "dev";
27 if (env.FH_BUILDER_MODE === "static" || env.FH_BUILDER_MODE === "dev") return env.FH_BUILDER_MODE;
28 return BUILD_MODE;
29}

Callers 1

openCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected