Skip to content

feat(cli): add report subcommand for usage receipt generation#106

Merged
mag123c merged 1 commit intomainfrom
feat/report
Mar 18, 2026
Merged

feat(cli): add report subcommand for usage receipt generation#106
mag123c merged 1 commit intomainfrom
feat/report

Conversation

@mag123c
Copy link
Owner

@mag123c mag123c commented Mar 18, 2026

Summary

  • toktrack report 서브커맨드 추가 — 기간별 AI 코딩 사용량 영수증 생성
  • 터미널 텍스트(box-drawing) + SVG 두 가지 렌더러 지원
  • --week (기본), --month, --days N 기간 옵션 + --svg [PATH] 출력

Changes

File Description
src/report/data.rs ReportData 중간 구조체 + from_summaries() 기간 필터링
src/report/text.rs Box-drawing 터미널 영수증 렌더러
src/report/svg.rs 600px SVG 영수증 렌더러 (외부 크레이트 없음)
src/cli/mod.rs Commands::Report + clap period group + run_report()

Test plan

  • make check (fmt + clippy + test) 통과 — 412 tests
  • CI (3 OS) 통과 확인
  • cargo run -- report --week 텍스트 출력 확인
  • cargo run -- report --month --svg SVG 파일 생성 확인
  • 브라우저에서 SVG 레이아웃/가독성 확인

Text (box-drawing) and SVG renderers for shareable AI coding receipts.
Supports --week, --month, --days N period options and --svg output.
@mag123c mag123c merged commit e620e28 into main Mar 18, 2026
3 checks passed
@mag123c mag123c deleted the feat/report branch March 18, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant