MCPcopy Index your code
hub / github.com/ionic-team/capacitor / writeConfig

Function writeConfig

cli/src/sysconfig.ts:54–59  ·  view source on GitHub ↗
(sysconfig: SystemConfig)

Source from the content-addressed store, hash-verified

52}
53
54export async function writeConfig(sysconfig: SystemConfig): Promise<void> {
55 debug('Writing to %O', SYSCONFIG_PATH);
56
57 await mkdirp(dirname(SYSCONFIG_PATH));
58 await writeJSON(SYSCONFIG_PATH, sysconfig, { spaces: '\t' });
59}

Callers 4

telemetryActionFunction · 0.90
mergeConfigFunction · 0.90
telemetryCommandFunction · 0.90
readConfigFunction · 0.70

Calls 1

writeJSONFunction · 0.85

Tested by

no test coverage detected