refactor(cli): add commands/, prompt.rs, parse.rs scaffold (no-op)

This commit is contained in:
adlee-was-taken
2026-05-06 17:42:38 -04:00
parent bd3d53fddb
commit 02e05f7a05
4 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
//! Per-command modules — one file per top-level subcommand.
//!
//! `main.rs` holds the clap surface (argument enums) and the dispatch
//! `match`; the actual command bodies live here. Helpers shared between
//! command modules (e.g. `commit_paths`, `resolve_query`) are defined in
//! this file as `pub(crate)` so siblings can pull them in via
//! `use crate::commands::*`.

View File

@@ -2,9 +2,12 @@
//!
//! See module docs for the unlock flow and vault layout.
mod commands;
mod device;
mod gitea;
mod helpers;
mod parse;
mod prompt;
mod session;
use std::path::PathBuf;

View File

@@ -0,0 +1,5 @@
//! Small parsers used by the CLI (`MM/YY[YY]`, lenient base32, MIME guess).
//!
//! Phase 7 of the CLI restructure migrates these to `relicario-core` and
//! turns this file into a thin re-export shim. They live here for now so
//! the Phase 1 relocation stays mechanical.

View File

@@ -0,0 +1,7 @@
//! Interactive prompt helpers for the CLI.
//!
//! The `prompt`/`prompt_optional`/`prompt_secret` family reads from stdin /
//! the TTY; the `prompt_keep`/`prompt_keep_opt`/`prompt_yesno` variants are
//! used by the edit handlers to keep current values when the user hits enter
//! at a blank prompt. `prompt_secret` honours `RELICARIO_TEST_ITEM_SECRET`
//! so integration tests (which don't have a TTY) can inject secrets.