Skip to content

feat(vehicle): add format_usb and delete_dashcam_clips signed commands (destructive - please review)#95

Merged
Bre77 merged 1 commit into
mainfrom
fm/tfa-cmd-destructive
Jul 22, 2026
Merged

feat(vehicle): add format_usb and delete_dashcam_clips signed commands (destructive - please review)#95
Bre77 merged 1 commit into
mainfrom
fm/tfa-cmd-destructive

Conversation

@Bre77

@Bre77 Bre77 commented Jul 22, 2026

Copy link
Copy Markdown
Member

Intent

  • ⚠️ Destructive commands - please review carefully. Adds format_usb() and delete_dashcam_clips() to Commands, wrapping the two remaining destructive VehicleAction proto fields (FormatUSBAction, DeleteDashcamClipsAction) for full-coverage parity with the rest of the signed-command surface.
  • format_usb() erases all files on the vehicle's connected USB drive; delete_dashcam_clips() erases all stored dashcam clips. Both are irreversible.
  • Both are unconditional no-arg wrappers with no confirmation guard - this deliberately follows the existing erase_user_data() precedent already in this codebase (commands.py), which is an equally destructive no-arg command with no guardrail. This library exposes the signed command as-is and leaves any confirmation UX to the caller, consistent with every other command here.
  • Purely additive - no existing signatures touched.
  • Tests in tests/test_ble_destructive_commands.py confirm each command builds the correct signed message (format_usb=True / delete_clips=True) over the mocked BLE transport - no live/destructive testing performed, matching how erase_user_data() itself was tested.

Wraps the two remaining destructive VehicleAction fields with no
confirmation guard, matching the existing erase_user_data() precedent:
this library exposes the signed command as-is and leaves any
confirmation UX to the caller.
@Bre77
Bre77 force-pushed the fm/tfa-cmd-destructive branch from ff27691 to 144d1b4 Compare July 22, 2026 22:23
@Bre77
Bre77 merged commit 3581793 into main Jul 22, 2026
5 checks 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.

1 participant