MCPcopy
hub / github.com/rpamis/comet / buildOpenSpecInitInvocation

Function buildOpenSpecInitInvocation

src/core/openspec.ts:29–42  ·  view source on GitHub ↗
(
  projectPath: string,
  toolIds: string[],
  scope: InstallScope,
  homeDir = os.homedir(),
  includeProfileFlag = true,
)

Source from the content-addressed store, hash-verified

27}
28
29function buildOpenSpecInitInvocation(
30 projectPath: string,
31 toolIds: string[],
32 scope: InstallScope,
33 homeDir = os.homedir(),
34 includeProfileFlag = true,
35): { command: string; args: string[] } {
36 const targetPath = scope === 'global' ? homeDir : projectPath;
37 const args = ['init', targetPath, '--tools', toolIds.join(',')];
38 if (includeProfileFlag) {
39 args.push('--profile', 'custom');
40 }
41 return { command: 'openspec', args };
42}
43
44const ALL_WORKFLOWS_CONFIG =
45 JSON.stringify(

Callers 2

openspec.test.tsFile · 0.85
installOpenSpecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected