| Crates.io | inquiry |
| lib.rs | inquiry |
| version | 0.1.4 |
| created_at | 2025-06-19 23:52:13.311198+00 |
| updated_at | 2025-07-02 01:15:58.256631+00 |
| description | A utility macro for the inquire crate |
| homepage | https://github.com/thebearodactyl/inquiry |
| repository | https://github.com/thebearodactyl/inquiry |
| max_upload_size | |
| id | 1718993 |
| size | 18,103 |
inquire#[derive(Debug, Copy, Clone, Choice)]
enum ExampleChoice {
/// Description of choice 1
ChoiceOne,
/// Description of choice 2
ChoiceTwo,
}
fn main() -> InqureResult<()> {
let first_choice = ExampleChoice::choice("Please choose one")?;
match first_choice {
ExampleChoice::ChoiceOne => println!("Chose `ChoiceOne`"),
ExampleChoice::ChoiceTwo => println!("Chose `ChoiceTwo`"),
}
Ok(())
}