MCPcopy
hub / github.com/coder/mux / trustProject

Function trustProject

src/cli/workflow.test.ts:23–27  ·  view source on GitHub ↗
(muxRoot: string, repo: string)

Source from the content-addressed store, hash-verified

21}
22
23async function trustProject(muxRoot: string, repo: string): Promise<void> {
24 await Bun.$`${BUN_EXECUTABLE} -e ${`import { Config } from "./src/node/config"; const c = new Config(); const cfg = c.loadConfigOrDefault(); cfg.projects.set(process.argv[1], { workspaces: [], trusted: true }); await c.saveConfig(cfg);`} ${repo}`
25 .env({ ...process.env, MUX_ROOT: muxRoot })
26 .quiet();
27}
28
29describe("mux workflow CLI helpers", () => {
30 test("rejects ambiguous structured args modes", async () => {

Callers 1

workflow.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected