Commit graph

9 commits

Author SHA1 Message Date
gak 796c09c17a
fix: remove vehicles list (#13) 2024-01-24 10:25:41 +11:00
gak 8c059769ee
refactor!: Rename Api to OwnerApi. Remove ResponseData<T>. Add VehicleApi trait.
Significant refactor to progress towards different API access that Tesla
has introduced. See issues #6 and #7.

Removed `ResponseData` because it wasn't very ergonomic, forcing the user
to deref or call data(). Also it had specific fields for JSON output
which was only used for the CLI, so I introduced a field
`print_responses` in OwnerApi that the CLI can use.
2023-10-22 09:17:32 +11:00
gak a8b58e1157
refactor: Api -> OwnerApi 2023-10-20 12:18:38 +11:00
gak a64a04e3d7
feat: rename and add api calls (energy_sites)
- rename api/cli energy_sites to products (to match the api)
- add energy_sites site_status
- add energy_sites live_status
- add energy_sites site_info
2023-09-05 13:48:16 +10:00
gak 900be5aa1f
feat: cli show json on POST and some errors 2023-08-29 16:13:43 +10:00
gak 8881d0fa59
feat: cli only prints json, cli-pretty-json feature 2023-08-29 13:11:28 +10:00
gak 9d020efa8c
chore: cleanups. nicer interactive message. 2023-08-29 12:16:07 +10:00
gak e3c1044dd3
refactor: split up cli, more crate version updates 2023-08-29 11:33:03 +10:00
gak 635bd84384
refactor: cli to be a binary with cli feature 2023-08-29 10:49:04 +10:00
Renamed from examples/cli.rs (Browse further)