MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / default_local_tls_dir

Function default_local_tls_dir

crates/openshell-server/src/defaults.rs:75–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75fn default_local_tls_dir() -> Result<PathBuf> {
76 if let Some(path) = std::env::var_os("OPENSHELL_LOCAL_TLS_DIR") {
77 return Ok(PathBuf::from(path));
78 }
79 Ok(openshell_core::paths::openshell_state_dir()?.join("tls"))
80}
81
82pub fn complete_local_tls_paths() -> Result<Option<LocalTlsPaths>> {
83 let dir = default_local_tls_dir()?;

Callers 2

complete_local_tls_pathsFunction · 0.85

Calls 1

openshell_state_dirFunction · 0.85

Tested by

no test coverage detected