Merge info/load/test CLIs into unified picomap subcommand CLI

This commit is contained in:
Ian Gulliver
2026-04-07 08:37:34 +09:00
parent a7381ca435
commit ffcbaf0665
4 changed files with 174 additions and 184 deletions

View File

@@ -4,8 +4,10 @@ description: Build firmware, load it onto the Pico, and reboot. Use when the use
user-invocable: true
---
Run `go run ./cmd/load/` from the project root. This builds both firmware targets, loads picomap onto the first device and picomap_test onto the second, and reboots both.
Run `go run ./cmd/picomap/ load` from the project root. This builds both firmware targets, loads picomap onto the first device and picomap_test onto the second, and reboots both.
After loading, run `go run ./cmd/info/` to verify both devices are responding.
To load a single target: `go run ./cmd/picomap/ load picomap` or `go run ./cmd/picomap/ load picomap_test`.
After modifying the load command itself (cmd/load/, lib/wire/, lib/picoserial/), run it twice: once to load the firmware, once to verify the load process still works end-to-end.
After loading, run `go run ./cmd/picomap/ info` to verify devices are responding.
After modifying the CLI itself (cmd/picomap/, lib/), run load twice: once to load the firmware, once to verify the load process still works end-to-end.