feat: add --sd-storage command to query SD card space - #31
Conversation
Adds a --sd-storage flag that calls GetSdCardStorageAsync() and prints the SD card free/used/total bytes and used percentage. Includes the help-text entry and a README line. Requires the SD-storage API (GetSdCardStorageAsync) added in daqifi-core #214, first shipping in Daqifi.Core 0.24.0; bumps the package reference from 0.20.0 to 0.24.0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR Summary by QodoAdd --sd-storage CLI command to report SD card capacity usage Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
Qodo review of #31: - RunSdCardOperationAsync dispatches SD operations via a single if/else-if chain, so combining flags (e.g. --sd-storage --sd-log-stop) silently ran only the first. Add an sdCommandCount check mirroring the firmware-command validation: "Specify only one SD card command at a time." - --help now marks --sd-list and --sd-storage as "(USB/serial only)" to match the README. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Qodo feedback addressed (commit 00ff498)1. SD flags not exclusive (🐞 Correctness) — fixed. Agreed: 2. SD storage docs mismatch (🐞 Maintainability) — fixed. Agreed: README marked Bench test (real hardware)Built against the published ✅ 🤖 Generated with Claude Code |
Summary
Adds a
--sd-storagecommand that queries the SD card's free/used/total space viaGetSdCardStorageAsync()and prints a formatted summary:Includes the help-text entry and a README line.
Daqifi.Core dependency
GetSdCardStorageAsyncwas added in daqifi-core#214 and shipped in Daqifi.Core 0.24.0 (now published on NuGet). This PR bumps the package reference0.20.0 → 0.24.0. The defaultdotnet buildrestores cleanly against the published package (0 warnings / 0 errors).🤖 Generated with Claude Code