()
| 73 | } |
| 74 | |
| 75 | fn 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 | |
| 82 | pub fn complete_local_tls_paths() -> Result<Option<LocalTlsPaths>> { |
| 83 | let dir = default_local_tls_dir()?; |
no test coverage detected