Skip to content

Commit 75067a9

Browse files
philnashdkundel
authored andcommitted
feat(twilio-run): updates env list command to use writeJsonOutput function
1 parent 9476496 commit 75067a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/twilio-run/src/printers/env/env-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { GetEnvironmentVariablesResult } from '@twilio-labs/serverless-api';
22
import chalk from 'chalk';
3-
import { writeOutput } from '../../utils/output';
3+
import { writeJSONOutput, writeOutput } from '../../utils/output';
44

55
export function outputVariables(
66
result: GetEnvironmentVariablesResult,
77
format?: 'json'
88
) {
99
if (format === 'json') {
10-
writeOutput(JSON.stringify(result, null, '\t'));
10+
writeJSONOutput(result);
1111
} else {
1212
const output = result.variables
1313
.map((entry: { [key: string]: string | undefined }) => {

0 commit comments

Comments
 (0)