databoxer 0.2.0

Fast and easy to use CLI-based file encryption program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{Result, app};
use crate::app::AppMode;

pub fn prompt_password() -> Result<String> {
    match app::get_app_mode() {
        AppMode::CLI => {
            use crate::cli::io::input;
            input::prompt_hidden("Enter the password for the current profile")
        }
        AppMode::GUI => unimplemented!()
    }
}