boomack-cli 0.2.1

CLI client for Boomack
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[macro_export]
macro_rules! trace {
    ($cfg:expr, $( $args:expr ),+ ) => {
        if (&$cfg).is_verbose() {
            use ::std::io::Write;
            use ::termcolor::WriteColor;
            let mut stdout = ::termcolor::StandardStream::stdout((&$cfg).color_choice());
            let _color_result = stdout.set_color(
                ::termcolor::ColorSpec::new()
                    .set_fg(Some(::termcolor::Color::White))
                    .set_dimmed(true));
            writeln!(&mut stdout, $($args),+ ).unwrap();
            let _color_result = stdout.set_color(
                ::termcolor::ColorSpec::new().set_reset(true));
        }
    };
}