feat: implement CLI core — database, broker trait, and commands#7
Merged
Conversation
…/report commands - Add SQLite database with migrations for brokers, personal records, and deletion requests - Define async BrokerConnector trait with DummyBroker reference implementation - Implement full CLI command tree: registry, broker, scan, delete, status, report - Add report generation in terminal (comfy-table), JSON, and HTML formats - Remote registry fetch from GitHub for broker definitions - 8 unit tests covering DB CRUD, migrations, connector registry, and DummyBroker
Mark open_in_memory as #[cfg(test)] and allow(dead_code) on AppError which will be used as connectors are added.
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
DummyBrokerreference implementation returning fake data for end-to-end testingregistry update/info,broker list/info,scan,delete,status,reportTest plan
cargo buildcompiles cleanlycargo test— 8/8 tests passcargo clippy— no warnings (except expected dead_code forAppErrorandopen_in_memory)cargo fmt --check— passesdata-breaker --help— shows all commandsdata-breaker scan --first-name Test --last-name User— DummyBroker returns records, stored in DB, displayed as tabledata-breaker delete --all— submits deletion via DummyBrokerdata-breaker status— shows deletion request statusesdata-breaker report --format json --output /tmp/report.json— valid JSONdata-breaker report --format html --output /tmp/report.html— valid HTML