Files
himalaya/src/sendmail/wizard.rs
T
Perma Alesheikh 1e448e56eb replace dialoguer with inquire
In order to reduce our dependencies, we are replacing the dependencies
that use console_rs with those that use crossterm.

This commit will completely replace dialoguer with inquire.

Signed-off-by: Perma Alesheikh <me@prma.dev>
2024-05-14 18:20:54 +02:00

17 lines
433 B
Rust

use color_eyre::Result;
use email::sendmail::config::SendmailConfig;
use inquire::Text;
use crate::backend::config::BackendConfig;
pub(crate) fn configure() -> Result<BackendConfig> {
let config = SendmailConfig {
cmd: Text::new("Sendmail-compatible shell command to send emails")
.with_default("/usr/bin/msmtp")
.prompt()?
.into(),
};
Ok(BackendConfig::Sendmail(config))
}