refactor(cli): add commands/, prompt.rs, parse.rs scaffold (no-op)
This commit is contained in:
7
crates/relicario-cli/src/commands/mod.rs
Normal file
7
crates/relicario-cli/src/commands/mod.rs
Normal 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::*`.
|
||||||
@@ -2,9 +2,12 @@
|
|||||||
//!
|
//!
|
||||||
//! See module docs for the unlock flow and vault layout.
|
//! See module docs for the unlock flow and vault layout.
|
||||||
|
|
||||||
|
mod commands;
|
||||||
mod device;
|
mod device;
|
||||||
mod gitea;
|
mod gitea;
|
||||||
mod helpers;
|
mod helpers;
|
||||||
|
mod parse;
|
||||||
|
mod prompt;
|
||||||
mod session;
|
mod session;
|
||||||
|
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|||||||
5
crates/relicario-cli/src/parse.rs
Normal file
5
crates/relicario-cli/src/parse.rs
Normal 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.
|
||||||
7
crates/relicario-cli/src/prompt.rs
Normal file
7
crates/relicario-cli/src/prompt.rs
Normal 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.
|
||||||
Reference in New Issue
Block a user