Fix cli not allowing both -q and --json flags at the same time

This commit is contained in:
Ethan Lane 2024-09-14 17:57:42 +01:00
parent e7f693982f
commit af30ab5ea7

View file

@ -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);
}