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

Function configCommand

cli/src/tasks/config.ts:6–14  ·  view source on GitHub ↗
(config: Config, json: boolean)

Source from the content-addressed store, hash-verified

4import { output } from '../log';
5
6export async function configCommand(config: Config, json: boolean): Promise<void> {
7 const evaluatedConfig = await deepAwait(config);
8
9 if (json) {
10 process.stdout.write(`${JSON.stringify(evaluatedConfig)}\n`);
11 } else {
12 output.write(`${util.inspect(evaluatedConfig, { depth: Infinity, colors: true })}\n`);
13 }
14}
15
16async function deepAwait(obj: any): Promise<any> {
17 if (obj && !Array.isArray(obj) && typeof obj === 'object' && obj.constructor === Object) {

Callers 1

runProgramFunction · 0.85

Calls 1

deepAwaitFunction · 0.85

Tested by

no test coverage detected