cmd-usage 0.6.1

Live Command Code (commandcode.ai) usage dashboard: credits, 5-hour and weekly windows, plan limits. Watch mode or one-shot.
1
2
3
4
5
6
use std::path::PathBuf;

/// `$HOME`, falling back to `/` (matches the rest of the CLI).
pub fn home() -> PathBuf {
    std::env::var("HOME").unwrap_or_else(|_| "/".into()).into()
}