feat: Add SD card CLI commands - #6
Conversation
Add --sd-list, --sd-log-start, and --sd-log-stop options for SD card operations via the core library's ISdCardOperations interface. Depends on daqifi/daqifi-core#feature/sd-card-operations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
User description
Summary
--sd-listcommand to list files on the device SD card--sd-log-startcommand to start SD card logging (supports--durationfor auto-stop)--sd-log-stopcommand to stop SD card loggingDepends on daqifi/daqifi-core#99 (SD card operations in core library).
Test plan
dotnet build -p:DaqifiCoreProjectPath=../daqifi-core/src/Daqifi.Core/Daqifi.Core.csprojcompilesdotnet run -- --serial <port> --sd-listdotnet run -- --serial <port> --sd-log-start --duration 5🤖 Generated with Claude Code
PR Type
Enhancement
Description
Add three new SD card CLI commands:
--sd-list,--sd-log-start,--sd-log-stopImplement
RunSdCardOperationAsync()method for SD card operationsSupport
--durationflag for automatic SD card logging stopAdd help text documentation for new SD card options
Diagram Walkthrough
File Walkthrough
Program.cs
Implement SD card CLI commands and routing logicProgram.cs
using Daqifi.Core.Device.SdCardimport for SD card operationsMain()to detect and handle SD card operationflags
RunSdCardOperationAsync()method handling--sd-list,--sd-log-start, and--sd-log-stopcommandsCliOptionsclass:SdList,SdLogStart,SdLogStop--sd-list,--sd-log-start, and--sd-log-stopflagscommands