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

Function getCommandOutput

cli/src/util/subprocess.ts:26–36  ·  view source on GitHub ↗
(
  command: string,
  args: readonly string[],
  options: RunCommandOptions = {},
)

Source from the content-addressed store, hash-verified

24}
25
26export async function getCommandOutput(
27 command: string,
28 args: readonly string[],
29 options: RunCommandOptions = {},
30): Promise<string | null> {
31 try {
32 return (await runCommand(command, args, options)).trim();
33 } catch (e) {
34 return null;
35 }
36}
37
38export async function isInstalled(command: string): Promise<boolean> {
39 try {

Callers 3

determinePackageManagerFunction · 0.90
getAppIdentifierFunction · 0.90
doctorCoreFunction · 0.90

Calls 1

runCommandFunction · 0.70

Tested by

no test coverage detected