walrus-cli 0.0.1

Command-line interface for Walrus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Configuration resolution for the CLI.
//!
//! Resolves the path to `~/.walrus/walrus.toml` for config commands.

use std::path::PathBuf;

/// Resolve the config file path.
pub fn resolve_config_path() -> PathBuf {
    dirs::home_dir()
        .expect("no home directory")
        .join(".walrus")
        .join("walrus.toml")
}