Skip to main content

gemini_cli/
paths.rs

1use std::path::{Path, PathBuf};
2
3pub fn resolve_secret_dir() -> Option<PathBuf> {
4    crate::runtime::resolve_secret_dir()
5}
6
7pub fn resolve_auth_file() -> Option<PathBuf> {
8    crate::runtime::resolve_auth_file()
9}
10
11pub fn resolve_secret_cache_dir() -> Option<PathBuf> {
12    crate::runtime::resolve_secret_cache_dir()
13}
14
15pub fn resolve_secret_timestamp_path(target_file: &Path) -> Option<PathBuf> {
16    nils_common::provider_runtime::paths::resolve_secret_timestamp_path(
17        &crate::provider_profile::GEMINI_PROVIDER_PROFILE,
18        target_file,
19    )
20}
21
22pub fn resolve_feature_dir() -> Option<PathBuf> {
23    crate::runtime::resolve_feature_dir()
24}
25
26pub fn resolve_script_dir() -> Option<PathBuf> {
27    crate::runtime::resolve_script_dir()
28}
29
30pub fn resolve_zdotdir() -> Option<PathBuf> {
31    crate::runtime::resolve_zdotdir()
32}