MCPcopy
hub / github.com/Fission-AI/OpenSpec / writeOpenersConfig

Function writeOpenersConfig

test/commands/workset.test.ts:87–94  ·  view source on GitHub ↗
(openers: unknown)

Source from the content-addressed store, hash-verified

85 }
86
87 function writeOpenersConfig(openers: unknown): void {
88 const configDir = path.join(env.XDG_CONFIG_HOME!, 'openspec');
89 fs.mkdirSync(configDir, { recursive: true });
90 fs.writeFileSync(
91 path.join(configDir, 'config.json'),
92 JSON.stringify({ openers }, null, 2)
93 );
94 }
95
96 describe('CLI-agent openers are disabled by default', () => {
97 beforeEach(() => {

Callers 1

workset.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected