relayburn-cli 2.8.2

The `burn` CLI — published to crates.io. Crate name is relayburn-cli because `burn` is taken on crates.io; the binary keeps the `burn` invocation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Resolve the user's `$HOME` directory with a `.` fallback.
//!
//! Hoisted out of `harnesses/{claude,codex,opencode}.rs` per issue #328 —
//! each adapter previously carried its own copy of this exact snippet.
//! Resolved on every call so tests that flip `$HOME` between runs (see
//! [`crate::harnesses::test_env::with_test_home`]) see the override.

use std::path::PathBuf;

/// Return `$HOME` as a `PathBuf`, falling back to `"."` when the env
/// var is unset.
pub fn home_dir() -> PathBuf {
    std::env::var_os("HOME")
        .map(PathBuf::from)
        .unwrap_or_else(|| PathBuf::from("."))
}