jacklog-macro 0.4.0

Easy way to get logging the way Jack always wants anyway
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Parser;
use jacklog_macro::verbose;

#[test]
fn test_other_fields() {
    #[verbose]
    #[derive(Parser)]
    struct Cli {
        #[clap(short, long)]
        color: String,
    }

    let cli = Cli::parse_from(["", "--color", "green"]);
    assert_eq!(cli.color, "green", "expect existing fields to be preserved");
}