mu: Make commands Result-based

Use Result<void> as the return value, simplifying some code.
This commit is contained in:
Dirk-Jan C. Binnema
2022-05-12 08:48:28 +03:00
parent 34c5ca1627
commit 158117e843
8 changed files with 252 additions and 401 deletions

View File

@ -48,7 +48,7 @@ show_fields(const MuConfig* opts)
Table fields;
fields.add_row({"field-name", "alias", "short", "search",
"value", "example", "description"});
"value", "example query", "description"});
auto disp= [&](std::string_view sv)->std::string {
if (sv.empty())