Skip to content

Commit 4b4f921

Browse files
committed
fix(ccusage): honor config jq for session output
Refs: ccusage#832
1 parent f37de3f commit 4b4f921

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/ccusage/src/commands/session.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const sessionCommand = define({
143143
cacheReadTokens: 0,
144144
totalCost: 0,
145145
};
146-
const jsonResult = await renderSessionJsonOutput([], totals, ctx.values.jq);
146+
const jsonResult = await renderSessionJsonOutput([], totals, mergedOptions.jq);
147147
if (Result.isFailure(jsonResult)) {
148148
logger.error(jsonResult.error.message);
149149
process.exit(1);
@@ -165,7 +165,7 @@ export const sessionCommand = define({
165165
}
166166

167167
if (useJson) {
168-
const jsonResult = await renderSessionJsonOutput(sessionData, totals, ctx.values.jq);
168+
const jsonResult = await renderSessionJsonOutput(sessionData, totals, mergedOptions.jq);
169169
if (Result.isFailure(jsonResult)) {
170170
logger.error(jsonResult.error.message);
171171
process.exit(1);

0 commit comments

Comments
 (0)