heal-cli 0.3.1

Hook-driven Evaluation & Autonomous Loop — code-health harness CLI for AI coding agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod calibrate;
pub mod diff;
pub mod hook;
pub mod hook_install;
pub mod init;
pub mod mark;
pub mod metrics;
pub mod skills;
pub mod status;

/// Print a `Serialize`able payload as pretty-printed JSON to stdout.
/// Used by every `--json` handler — owned data is infallible to
/// serialise, so the `expect` is structurally true.
pub(crate) fn emit_json<T: serde::Serialize>(value: &T) {
    let body = serde_json::to_string_pretty(value).expect("serialization is infallible");
    println!("{body}");
}