Crates.io | cli_input |
lib.rs | cli_input |
version | 1.0.4 |
source | src |
created_at | 2023-10-15 17:40:39.89522 |
updated_at | 2023-11-18 20:46:11.574998 |
description | Various functions for gathering user input in the terminal. |
homepage | |
repository | https://gitlab.com/oglo-crates/cli-input |
max_upload_size | |
id | 1004028 |
size | 4,080 |
A crate filled with various functions and macros for collecting user input in the terminal.
use cli_input::prelude::*;
let name: String = input!("Name: ");
let password: String = input_hidden!("Password: ");
println!("\n==== Information ====");
println!(" Name: {}", name);
println!(" Password: {}", password);