A simple rust framework to build cli applications
- a rust framework to help developers create cli app easily :)
[dependencies]
rustcli = { git = "https://github.com/krishpranav/rustcli" }
- basic cli app using rustcli
use rustcli::{App};
use std::env;
fn main() {
let args: Vec<String> = env::args().collect();
let app = App::new(env!("CARGO_PKG_NAME"))
.description("hey this is a cli app build using rust cli")
.author("Authorone")
.version(env!("CARGO_PKG_VERSION"))
.usage("cli [args]")
.action(|c| println!("Hello, {:?}", c.args));
app.run(args);
}
- for more tutorial visit the docs