Skip to content

Commit 089d414

Browse files
committed
feat: implement cost mode options to command
1 parent a685863 commit 089d414

4 files changed

Lines changed: 324 additions & 99 deletions

File tree

commands/daily.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { type LoadOptions, loadUsageData } from "../data-loader.ts";
1111
import { log, logger } from "../logger.ts";
1212
import { sharedArgs } from "../shared-args.ts";
13+
import type { CostMode } from "../types.ts";
1314
import { formatCurrency, formatNumber } from "../utils.ts";
1415

1516
export const dailyCommand = define({
@@ -21,6 +22,7 @@ export const dailyCommand = define({
2122
since: ctx.values.since,
2223
until: ctx.values.until,
2324
claudePath: ctx.values.path,
25+
mode: ctx.values.mode as CostMode,
2426
};
2527
const dailyData = await loadUsageData(options);
2628

commands/session.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { type LoadOptions, loadSessionData } from "../data-loader.ts";
1111
import { log, logger } from "../logger.ts";
1212
import { sharedArgs } from "../shared-args.ts";
13+
import type { CostMode } from "../types.ts";
1314
import { formatCurrency, formatNumber } from "../utils.ts";
1415

1516
export const sessionCommand = define({
@@ -21,6 +22,7 @@ export const sessionCommand = define({
2122
since: ctx.values.since,
2223
until: ctx.values.until,
2324
claudePath: ctx.values.path,
25+
mode: ctx.values.mode as CostMode,
2426
};
2527
const sessionData = await loadSessionData(options);
2628

0 commit comments

Comments
 (0)