Skip to content

Commit 0b80306

Browse files
committed
pretty printing json
1 parent 4e0e119 commit 0b80306

File tree

1 file changed

+10
-6
lines changed
  • packages/app/src/cli/commands/app/function

1 file changed

+10
-6
lines changed

packages/app/src/cli/commands/app/function/info.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,16 @@ export default class FunctionInfo extends AppUnlinkedCommand {
5050

5151
if (flags.json) {
5252
outputResult(
53-
JSON.stringify({
54-
functionRunnerPath: functionRunner.path,
55-
targeting,
56-
schemaPath,
57-
wasmPath: ourFunction.outputPath,
58-
}),
53+
JSON.stringify(
54+
{
55+
functionRunnerPath: functionRunner.path,
56+
targeting,
57+
schemaPath,
58+
wasmPath: ourFunction.outputPath,
59+
},
60+
null,
61+
2,
62+
),
5963
)
6064
} else {
6165
outputResult(`functionRunnerPath: ${functionRunner.path}`)

0 commit comments

Comments
 (0)