ipatool-rs 0.1.9

A terminal UI and CLI for searching, purchasing, and downloading iOS App Store IPA files.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io;

pub fn prompt_password(prompt: &str) -> io::Result<String> {
    let config = rpassword::ConfigBuilder::new()
        .password_feedback_mask('*')
        .build();
    rpassword::prompt_password_with_config(prompt, config)
}

pub fn prompt_visible(prompt: &str) -> io::Result<String> {
    // Keep visible prompts on the controlling terminal when stdin is redirected.
    let config = rpassword::ConfigBuilder::new()
        .password_feedback_partial_mask('*', usize::MAX)
        .build();
    rpassword::prompt_password_with_config(prompt, config)
}