Add --export flag to export all seed data from DB to JSON
Replaces --export-bosses with a unified --export that dumps games, pokemon, evolutions, routes/encounters, and bosses to seeds/data/. Each export function mirrors the corresponding API export endpoint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
# nuzlocke-tracker-009n
|
||||
title: Add CLI export for all seed data types
|
||||
status: completed
|
||||
type: feature
|
||||
priority: normal
|
||||
created_at: 2026-02-08T11:37:27Z
|
||||
updated_at: 2026-02-08T11:38:48Z
|
||||
---
|
||||
|
||||
Add export functions for games, pokemon, routes/encounters, and evolutions to the seed CLI, matching the existing export API endpoints. Consolidate with the existing --export-bosses into a single --export flag that dumps everything.
|
||||
|
||||
## Checklist
|
||||
- [x] Add export_games() to run.py — writes games.json
|
||||
- [x] Add export_pokemon() to run.py — writes pokemon.json
|
||||
- [x] Add export_routes() to run.py — writes {game_slug}.json per game (routes + encounters)
|
||||
- [x] Add export_evolutions() to run.py — writes evolutions.json
|
||||
- [x] Replace --export-bosses with --export flag that exports all data types
|
||||
- [x] Update __main__.py docstring
|
||||
Reference in New Issue
Block a user