kickable 0.5.39

kickable is a crate created to answer the age old question... Can I kick it?
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use graphul::{http::Methods, Context, Graphul};
#[cfg(not(tarpaulin_include))]
#[tokio::main]
async fn main() {
    let mut app = Graphul::new();
    app.get("/:item", |c: Context| async move {
        let item = c.params("item");
        let result = kickable::validate(item.as_str());
        format!("{result}")
    });

    match kickable::args::service::parse() {
        Ok(args) => {
            app.run(args.to_string().as_str()).await;
        }
        Err(_) => kickable::args::service::display_help_and_exit(),
    }
}