minimo 0.5.42

terminal ui library combining alot of things from here and there and making it slightly easier to play with
Documentation
// use std::error::Error;

// use minimo::{banner::Banner, choice, console::ask::*, selection, showln };
// use minimo::*;
 


// fn main() -> Result<(), Box<dyn Error>> {


 
//     Banner::new("minimo").show(cyan_bold);

//     let name = text!("What is your name?", "Anonymous".to_string());
//     let age = number!("What is your age?", 20);
//     let gender = confirm!("Are you a man?", true);
 


 

//     let options = vec![
//        choice!("option 1", "description for option 1", || {
 
//             set!(name, "value".to_string());
//             set!(age, 42);
//             set!(gender, true);
//             println!("Action for Option 1");
//             Ok("Option 1".into())
//         }),
//         choice!("option 2", "description for option 2", || {
 
//             set!(name_key, "value".to_string());
//             set!(age_key, 42);
//             set!(gender_key, true);
//             println!("Action for Option 2");
//             Ok("Option 2".into())
//         }),
//         choice!("option 3", "description for option 3", || {
      
//             set!(name_key, "value".to_string());
//             set!(age_key, 42);
//             set!(gender_key, true);
//             println!("Action for Option 3");
//             Ok("Option 3".into())
//         }),
//     ];

//     let selected : Choice<String> = selection!("Choose an option:", &options).unwrap();
        
//    let context = selected.run().unwrap();
    
//     if let Some(result) = maybe!(name_key) {
//         println!("String result: {}", result);
//     }
//     if let Some(result) = maybe!(age_key) {
//         println!("i32 result: {}", result);
//     }

//     println!("Vector result: {:?}", get!(vector_key));






 

//     Ok(())
// }

use minimo::{context::global_context, get, set};



fn main() {
    set!(42.2f32);
    println!("{}", get!(f32));


    
    set!(name => "John");
    set!(age => 20);
    set!(gender => true);

     global_context().list();
    // println!("{}", get!(String,name));


}