starbase 0.11.0

Framework for building performant command line applications and developer tools.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use starbase_styles::theme::create_graphical_theme;

pub use miette::*;

#[cfg_attr(feature = "tracing", tracing::instrument)]
pub fn setup_miette() {
    miette::set_panic_hook();

    miette::set_hook(Box::new(|_| {
        Box::new(
            miette::MietteHandlerOpts::new()
                .with_cause_chain()
                .graphical_theme(create_graphical_theme())
                .build(),
        )
    }))
    .unwrap();
}