walrus_cli/config.rs
1//! Configuration resolution for the CLI.
2//!
3//! Resolves the path to `~/.walrus/walrus.toml` for config commands.
4
5use std::path::PathBuf;
6
7/// Resolve the config file path.
8pub fn resolve_config_path() -> PathBuf {
9 dirs::home_dir()
10 .expect("no home directory")
11 .join(".walrus")
12 .join("walrus.toml")
13}