cmd: update commands and tests for Message

This commit is contained in:
Dirk-Jan C. Binnema
2022-04-28 22:47:00 +03:00
parent e5512bd3f2
commit 9dd1aaeef5
7 changed files with 234 additions and 278 deletions

View File

@ -57,7 +57,7 @@ static Result<void>
save_parts(const std::string& path, Option<std::string>& filename_rx,
const MuConfig* opts)
{
auto message{Message::make_from_path(mu_config_message_options(opts), path, {})};
auto message{Message::make_from_path(path, mu_config_message_options(opts))};
if (!message)
return Err(std::move(message.error()));
@ -150,8 +150,7 @@ show_parts(const char* path, const MuConfig* opts)
{
//msgopts = mu_config_get_msg_options(opts);
auto msg_res{Message::make_from_path(mu_config_message_options(opts),
path)};
auto msg_res{Message::make_from_path(path, mu_config_message_options(opts))};
if (!msg_res)
return Err(std::move(msg_res.error()));