Skip to content

feat: implement burnless toil export command - #53

Merged
Dinushi94 merged 1 commit into
mainfrom
feat/toil-export
Jun 28, 2026
Merged

feat: implement burnless toil export command#53
Dinushi94 merged 1 commit into
mainfrom
feat/toil-export

Conversation

@Dinushi94

Copy link
Copy Markdown
Contributor

Closes #9

Summary

Export toil events from local database to CSV or JSON.

Usage

# Export all events as CSV to stdout
burnless toil export

# Export as JSON
burnless toil export --format json

# Filter by month and save to file
burnless toil export --month 2026-06 --output june-toil.csv

CSV output

id,service,task,date,duration_minutes,automatable,trigger,notes,cost_usd
evt_001,payments-api,manual-rollback,2026-06-20,45,true,bad-deployment,,64.90

Use cases

  • Share with manager as spreadsheet
  • Import into Excel / Google Sheets
  • Feed into custom reporting tools

Tests

  • All existing tests pass

- export toil events as CSV (default) or JSON
- optional --month flag to filter by month
- optional --output flag to write to a file instead of stdout
- includes cost_usd column calculated from DefaultCostModel
- CSV format compatible with Excel, Google Sheets
@Dinushi94
Dinushi94 merged commit 650d172 into main Jun 28, 2026
1 check passed
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.

feat: implement toil export command

1 participant