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

Function interpretEnabled

cli/src/tasks/telemetry.ts:32–43  ·  view source on GitHub ↗
(onOrOff?: string)

Source from the content-addressed store, hash-verified

30}
31
32function interpretEnabled(onOrOff?: string): boolean | undefined {
33 switch (onOrOff) {
34 case 'on':
35 return true;
36 case 'off':
37 return false;
38 case undefined:
39 return undefined;
40 }
41
42 fatal(`Argument must be ${c.strong('on')} or ${c.strong('off')} (or left unspecified)`);
43}

Callers 1

telemetryCommandFunction · 0.85

Calls 1

fatalFunction · 0.90

Tested by

no test coverage detected