pimalaya-tui 0.2.2

Collection of crossterm widgets shared accross Pimalaya projects
1
2
3
4
5
6
7
8
9
10
11
12
use email::notmuch::config::NotmuchConfig;

use crate::{terminal::prompt, Result};

pub fn start() -> Result<NotmuchConfig> {
    let config = NotmuchConfig {
        database_path: Some(prompt::path("Notmuch database path:", None::<&str>)?),
        ..Default::default()
    };

    Ok(config)
}