MCPcopy Create free account
hub / github.com/64bit/commandOK / config_dir

Function config_dir

src/config.rs:46–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46fn config_dir() -> PathBuf {
47 let home = std::env::var("HOME").unwrap_or_else(|_| ".".into());
48 PathBuf::from(home).join(".commandok")
49}
50
51fn config_path() -> PathBuf {
52 config_dir().join("config.toml")

Callers 2

config_pathFunction · 0.85
loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected