Fix bug where you weren't able to use both the -q and -j flags at the same time #227
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,15 @@ export default class OutputHelper {
|
||||||
const outputLines: string[] = [];
|
const outputLines: string[] = [];
|
||||||
|
|
||||||
if (options.json) {
|
if (options.json) {
|
||||||
|
if (options.queryMetadata != null) {
|
||||||
|
return JSON.stringify({
|
||||||
|
...result,
|
||||||
|
query: {
|
||||||
|
...response.Query,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
return JSON.stringify(result);
|
return JSON.stringify(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue