mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08:00
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>
This commit is contained in:
committed by
Clément DOUIN
parent
d54dd6429e
commit
1e448e56eb
@@ -1,15 +1,14 @@
|
||||
use color_eyre::Result;
|
||||
use dialoguer::Input;
|
||||
use email::sendmail::config::SendmailConfig;
|
||||
use inquire::Text;
|
||||
|
||||
use crate::{backend::config::BackendConfig, ui::THEME};
|
||||
use crate::backend::config::BackendConfig;
|
||||
|
||||
pub(crate) fn configure() -> Result<BackendConfig> {
|
||||
let config = SendmailConfig {
|
||||
cmd: Input::with_theme(&*THEME)
|
||||
.with_prompt("Sendmail-compatible shell command to send emails")
|
||||
.default(String::from("/usr/bin/msmtp"))
|
||||
.interact()?
|
||||
cmd: Text::new("Sendmail-compatible shell command to send emails")
|
||||
.with_default("/usr/bin/msmtp")
|
||||
.prompt()?
|
||||
.into(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user