MCPcopy Create free account
hub / github.com/arctic-cli/interface / importConfig

Function importConfig

packages/arctic/src/cli/opencode-config-import.ts:294–300  ·  view source on GitHub ↗
(arcticConfig: Config.Info, opencodeConfig: Config.Info, fields: string[])

Source from the content-addressed store, hash-verified

292}
293
294async function importConfig(arcticConfig: Config.Info, opencodeConfig: Config.Info, fields: string[]) {
295 const merged = mergeConfigs(arcticConfig, opencodeConfig, fields)
296 const Global = await import("../global").then((m) => m.Global)
297 const configPath = path.join(Global.Path.config, "arctic.json")
298 await Bun.write(configPath, JSON.stringify(merged, null, 2))
299 log.info("imported opencode config", { fields })
300}
301
302export async function maybeImportOpenCodeConfig() {
303 if (!process.stdin.isTTY || !process.stdout.isTTY) {

Callers 1

Calls 1

mergeConfigsFunction · 0.70

Tested by

no test coverage detected