cloud_terrastodon_user_input 0.36.0

Helper functions for interacting with users in the terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use cloud_terrastodon_user_input::PickerTui;

pub fn main() -> eyre::Result<()> {
    let choices = vec![
        "First\nSecond\nThird",
        "A\nB\nC",
        "IMPORT BRUH\nDO THING\nWOOHOO!",
        "single item",
        "another single item",
    ];
    let chosen = PickerTui::new().pick_many(choices)?;
    println!("You chose: {chosen:#?}");
    Ok(())
}