Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 665 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 665 Bytes

Arsk

Prompt for user input in a composable way.

Installation

Add this line to your application's Cargo.toml:

[dependencies]
arsk = { git = "https://github.com/DaveLancaster/arsk" }

Usage

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();

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/DaveLancaster/arsk.

License

The crate is available as open source under the terms of the MIT License.