mu: add --reindex option for mu index

I.e. without having to reinit explicitly.
This commit is contained in:
Dirk-Jan C. Binnema
2024-04-05 21:17:55 +03:00
parent 4ddbac5d5f
commit f813498f4d
7 changed files with 40 additions and 16 deletions

View File

@ -142,10 +142,12 @@ Mu::mu_cmd_execute(const Options& opts) try {
return with_writable_store(mu_cmd_remove, opts);
case Options::SubCommand::Move:
return with_writable_store(mu_cmd_move, opts);
case Options::SubCommand::Index:
return with_writable_store(mu_cmd_index, opts);
/* commands instantiate store themselves */
/*
* commands instantiate store themselves
*/
case Options::SubCommand::Index:
return mu_cmd_index(opts);
case Options::SubCommand::Init:
return mu_cmd_init(opts);
case Options::SubCommand::Server: