nebu-ctx 0.7.6

Lean-ctx runtime adapted for the NebuCtx self-hosted client/server product.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn main() {
    std::panic::set_hook(Box::new(|info| {
        eprintln!("nebu-ctx: unexpected error (your command was not affected)");
        eprintln!("  Disable temporarily: nebu-ctx-off");
        eprintln!("  Full uninstall:      nebu-ctx uninstall");
        if let Some(msg) = info.payload().downcast_ref::<&str>() {
            eprintln!("  Details: {msg}");
        } else if let Some(msg) = info.payload().downcast_ref::<String>() {
            eprintln!("  Details: {msg}");
        }
        if let Some(loc) = info.location() {
            eprintln!("  Location: {}:{}", loc.file(), loc.line());
        }
    }));

    lean_ctx::cli::run();
}