cmd: update commands and tests for Message
This commit is contained in:
@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user