#100 Move document operations from CLI commands into opake-core

closed medium · sable · 2026-03-02 23:37 · closed 2026-03-02 23:37 · Phase 1: CLI Foundation

Comments — 1

sable note 2026-03-02 23:37

list_documents (ls.rs), delete_document (rm.rs), and download_and_decrypt (download.rs) are pure XRPC+record logic with no CLI concerns (no filesystem, no config, no prompts). They belong in opake-core so they're reusable by the future web AppView. Proposed location: opake-core/src/documents.rs (or operations.rs). CLI commands become thin wrappers that call core functions + handle I/O. This is a refactor — no behavior change, no new tests needed beyond verifying existing tests still pass.

Generated 2026-03-03 02:53 UTC