Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit 3b7ebab

Browse files
authored
Fixing info: prefix (#254)
1 parent 680e617 commit 3b7ebab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/commands/deployment/get.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ export const getDeployments = async (
146146
deploymentId
147147
).then((deployments: Deployment[]) => {
148148
if (outputFormat === OUTPUT_FORMAT.JSON) {
149-
logger.info(JSON.stringify(deployments, null, 2));
149+
// Use console.log since it helps piping output to a file using > filename.json
150+
// tslint:disable-next-line: no-console
151+
console.log(JSON.stringify(deployments, null, 2));
150152
} else {
151153
printDeployments(deployments, outputFormat, limit);
152154
}
@@ -381,8 +383,9 @@ export const printDeployments = (
381383
break;
382384
}
383385
}
384-
385-
logger.info("\n" + table.toString());
386+
// Use console.log since it helps piping output to a file using > filename.txt
387+
// tslint:disable-next-line: no-console
388+
console.log("\n" + table.toString());
386389
return table;
387390
} else {
388391
logger.info("No deployments found for specified filters.");

0 commit comments

Comments
 (0)