MCPcopy
hub / github.com/ionic-team/capacitor / sync

Function sync

cli/src/tasks/sync.ts:45–56  ·  view source on GitHub ↗
(config: Config, platformName: string, deployment: boolean, inline = false)

Source from the content-addressed store, hash-verified

43}
44
45export async function sync(config: Config, platformName: string, deployment: boolean, inline = false): Promise<void> {
46 await runHooks(config, platformName, config.app.rootDir, 'capacitor:sync:before');
47
48 try {
49 await copy(config, platformName, inline);
50 } catch (e: any) {
51 logger.error(e.stack ?? e);
52 }
53 await update(config, platformName, deployment);
54
55 await runHooks(config, platformName, config.app.rootDir, 'capacitor:sync:after');
56}

Callers 3

runCommandFunction · 0.90
addCommandFunction · 0.90
syncCommandFunction · 0.85

Calls 4

runHooksFunction · 0.90
copyFunction · 0.90
updateFunction · 0.90
errorMethod · 0.80

Tested by

no test coverage detected