MCPcopy Create free account
hub / github.com/Bitterbot-AI/bitterbot-desktop / buildProgram

Function buildProgram

src/cli/program/build-program.ts:8–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { setProgramContext } from "./program-context.js";
7
8export function buildProgram() {
9 const program = new Command();
10 const ctx = createProgramContext();
11 const argv = process.argv;
12
13 setProgramContext(program, ctx);
14 configureProgramHelp(program, ctx);
15 registerPreActionHooks(program, ctx.programVersion);
16
17 registerProgramCommands(program, ctx, argv);
18
19 return program;
20}

Callers 5

index.tsFile · 0.85
runCliFunction · 0.85

Calls 5

createProgramContextFunction · 0.85
setProgramContextFunction · 0.85
configureProgramHelpFunction · 0.85
registerPreActionHooksFunction · 0.85
registerProgramCommandsFunction · 0.85

Tested by

no test coverage detected