cli-toolbox 0.8.0

Utility library for working with cli output ergonomically
1
2
3
4
5
6
7
8
9
10
11
12
13
use syn::parse::{Parse, ParseStream};

use crate::common::parse::parse_expr_eval;
use crate::common::tracing::{trace_parsed, trace_source};
use crate::release_macro::Release;

impl Parse for Release {
    fn parse(input: ParseStream) -> syn::Result<Self> {
        trace_parsed(parse_expr_eval(
            trace_source(input), "release", |terse, verbose| Self { terse, verbose },
        ))
    }
}