A simple toolset for asking questions through the terminal.
Add Ask
as a dependency in your Cargo.toml
toml
[dependencies]
ask=0.0.1
Examples:
```rust extern crate ask;
use ask::question::{OpenEnded, MultipleChoice, TraitQuestion};
fn main() { let mut multiplechoice = MultipleChoice::new("question?".tostring()); let answers = multiplechoice.addoption("option 1".toowned()) .addoption("option 2".toowned()) .addoption("option 3".toowned()) .maxselections(2) .min_selections(1) .send() .unwrap();
for answer in answers{
println!("{:?}", answer);
}
}
```
should show: