feat(akroasis): radio CLI — read, program, export, import, detect#21
Merged
forkwright merged 1 commit intomainfrom Mar 16, 2026
Merged
feat(akroasis): radio CLI — read, program, export, import, detect#21forkwright merged 1 commit intomainfrom
forkwright merged 1 commit intomainfrom
Conversation
Contributor
|
Consider splitting into smaller PRs for easier review. Not a blocker, just a signal. |
Wire the syntonia stack into akroasis radio subcommands with full CLI integration: detect connected radios, read/display channels, program from frequency plans, export to TOML/JSON/CSV/CHIRP-CSV, and import from all supported formats. - Add clap-derived RadioCommand enum with detect/read/program/export/import - Trait-based hardware abstraction (Hardware + Session) for testability - StubHardware returns errors until protocol layers (P1-02..P1-06) land - User-friendly snafu error types with actionable fix suggestions - comfy-table channel display, indicatif progress bars, dialoguer confirm - CHIRP-compatible 20-column CSV export/import with tone/duplex mapping - 27 tests covering CLI parsing, error messages, detect, read, export, import (format detection, CSV parsing, roundtrip), and program Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e70c49c to
e0c7356
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wire the full syntonia stack into user-facing
akroasis radiosubcommands, completing the CLI integration layer for P1-07.Changes
cli.rs(new) —Clistruct +Commandenum +RadioArgswrapper for nested clap subcommandsradio/mod.rs(new) —RadioCommandenum,ExportFormat,RadioVariantmodel,DetectedRadio,Hardware/Sessiontraits,StubHardware,resolve_target()helper,dispatch()/dispatch_with()radio/errors.rs(new) — 15-variantRadioErrorenum with user-friendly messages and actionable fix suggestions (snafu)radio/detect.rs(new) — detect subcommand, prints discovered radios with variant/port/firmware/warningsradio/read.rs(new) — read subcommand, downloads EEPROM image with progress bar, decodes channels, prints comfy-tableradio/program.rs(new) — program subcommand, loads TOML/JSON plan, validates against radio constraints, confirms with user, uploads + verifiesradio/export.rs(new) — export to TOML/JSON/CSV/CHIRP-CSV with proper tone/duplex mapping (20-column CHIRP format)radio/import.rs(new) — import from TOML/JSON/CHIRP-CSV/binary image with format auto-detectionradio/progress.rs(new) — indicatif progress bar helpers for download/uploadmain.rs— refactored to usecli::Cli+radio::dispatch(), addedRadioErrorintegrationDesign decisions
Hardware+Sessiontraits allow full testing without serial hardware.StubHardwarereturnsHardwareNotAvailableuntil P1-02..P1-06 protocol layers land.Test plan
cargo fmt --all -- --checkpassescargo clippy --workspace --all-targets -- -D warningspassescargo test --workspacepasses (207 tests, 27 in akroasis)🤖 Generated with Claude Code