clawless 0.5.0

An opinionated framework for building command-line applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clawless::prelude::*;

#[derive(Debug, Args)]
pub struct GreetArgs {
    name: String,
}

#[command]
pub async fn greet(args: GreetArgs) -> CommandResult {
    println!("Hello, {}!", args.name);
    Ok(())
}

fn main() {}