MCPcopy Create free account
hub / github.com/cli/cli / ok

Function ok

evals/src/smoke.test.ts:86–86  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

84 ran.push(args.slice(0, 3).join(" "));
85 const [, , sub, id] = args;
86 const ok = (stdout: string) => ({ code: 0, stdout, stderr: "" });
87 if (sub === "create") { held.add("sub_new"); return ok("sub_new\n"); }
88 if (sub === "list") return ok(JSON.stringify([...held].map(held => ({ id: held }))));
89 if (sub === "delete") { held.delete(id!); return ok(""); }

Callers 1

ghFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected