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

Function run

cli/test/util.ts:24–34  ·  view source on GitHub ↗
(appRoot: string, capCommand: string)

Source from the content-addressed store, hash-verified

22}
23
24export async function run(appRoot: string, capCommand: string): Promise<string> {
25 return new Promise((resolve, reject) => {
26 exec(`cd "${appRoot}" && "${cwd}/bin/capacitor" ${capCommand}`, (error, stdout, stderr) => {
27 if (error) {
28 reject(stdout + stderr);
29 } else {
30 resolve(stdout);
31 }
32 });
33 });
34}
35
36export function mktmp(): Promise<{
37 cleanupCallback: DirCallback;

Callers 5

init.spec.tsFile · 0.90
update.ios.spec.tsFile · 0.90
add.ios.spec.tsFile · 0.90

Calls 1

execFunction · 0.85

Tested by

no test coverage detected