Prompt for user input in a composable way.
Add this line to your application's Cargo.toml:
[dependencies]
arsk = { git = "https://github.com/DaveLancaster/arsk" }
You can prompt users for input like so:
extern crate arsk;
use arsk::{ input, Colour };
let msg = "What shall we do today?";
let resp = input(msg).prompt(&':').no_echo().fg_colour(Colour::Red).ask().unwrap();
Bug reports and pull requests are welcome on GitHub at https://github.com/DaveLancaster/arsk.
The crate is available as open source under the terms of the MIT License.