Fix cli not allowing both -q and --json flags at the same time
This commit is contained in:
parent
e7f693982f
commit
af30ab5ea7
1 changed files with 9 additions and 0 deletions
|
@ -8,6 +8,15 @@ export default class OutputHelper {
|
|||
const outputLines: string[] = [];
|
||||
|
||||
if (options.json) {
|
||||
if (options.queryMetadata != null) {
|
||||
return JSON.stringify({
|
||||
...result,
|
||||
query: {
|
||||
...response.Query,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return JSON.stringify(result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue