Adding upstream version 0.2.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c7e0ec57a4
commit
7f48381065
14 changed files with 647 additions and 0 deletions
10
examples/username-password.rs
Normal file
10
examples/username-password.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
use terminal_prompt::Terminal;
|
||||
|
||||
fn main() -> std::io::Result<()> {
|
||||
let mut terminal = Terminal::open()?;
|
||||
let username = terminal.prompt("Username: ")?;
|
||||
let password = terminal.prompt_sensitive("Password: ")?;
|
||||
println!("Username: {username}");
|
||||
println!("Password: {password}");
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue