kill cli/misc.rs

This commit is contained in:
Kent Overstreet 2026-04-12 23:01:39 -04:00
parent 5a832b1d6c
commit 70097fa84b
6 changed files with 157 additions and 162 deletions

View file

@ -437,15 +437,15 @@ trait Run {
impl Run for Command {
fn run(self) -> Result<(), String> {
match self {
Self::Search { keys } => cli::misc::cmd_search(&keys),
Self::Search { keys } => cli::node::cmd_search(&keys),
Self::Render { key } => cli::node::cmd_render(&key),
Self::Write { key } => cli::node::cmd_write(&key),
Self::Edit { key } => cli::node::cmd_edit(&key),
Self::History { full, key } => cli::node::cmd_history(&key, full),
Self::Tail { n, full, provenance, all_versions }
=> cli::journal::cmd_tail(n, full, provenance.as_deref(), !all_versions),
Self::Status => cli::misc::cmd_status(),
Self::Query { expr } => cli::misc::cmd_query(&expr),
Self::Status => cli::admin::cmd_status(),
Self::Query { expr } => cli::node::cmd_query(&expr),
Self::WeightSet { key, weight } => cli::node::cmd_weight_set(&key, weight),
Self::Node(sub) => sub.run(),
Self::Journal(sub) => sub.run(),
@ -518,7 +518,7 @@ impl Run for AdminCmd {
Self::DailyCheck => cli::admin::cmd_daily_check(),
Self::Import { files } => cli::admin::cmd_import(&files),
Self::Export { files, all } => cli::admin::cmd_export(&files, all),
Self::LoadContext { stats } => cli::misc::cmd_load_context(stats),
Self::LoadContext { stats } => cli::node::cmd_load_context(stats),
Self::MigrateTranscriptProgress => {
let mut store = store::Store::load()?;
let count = store.migrate_transcript_progress()?;