MCPcopy Create free account
hub / github.com/davialabs/davia / writeConfig

Function writeConfig

apps/cli/src/sync.ts:80–83  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

78 * Writes config object to config.json
79 */
80export async function writeConfig(config: Config): Promise<void> {
81 const configPath = await getConfigPath();
82 await fs.writeJson(configPath, config, { spaces: 2 });
83}
84
85/**
86 * Gets the access token from config.json, or null if not found

Callers 2

index.tsFile · 0.85
ensureLoggedInFunction · 0.85

Calls 1

getConfigPathFunction · 0.85

Tested by

no test coverage detected