opencode-stats 1.3.7

A terminal dashboard for OpenCode usage statistics inspired by the /stats command in Claude Code
use std::path::PathBuf;

pub mod app_config;
pub mod errors;
pub mod theme_config;

pub fn config_root() -> Option<PathBuf> {
    dirs::config_dir().map(|path| path.join("oc-stats"))
}

pub fn config_path() -> Option<PathBuf> {
    config_root().map(|path| path.join("config.toml"))
}

pub fn themes_index_path() -> Option<PathBuf> {
    config_root().map(|path| path.join("themes.toml"))
}

pub fn themes_dir_path() -> Option<PathBuf> {
    config_root().map(|path| path.join("themes"))
}