MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_filepath

Method with_filepath

crates/opencode-provider/src/auth.rs:70–75  ·  view source on GitHub ↗
(filepath: PathBuf)

Source from the content-addressed store, hash-verified

68 }
69
70 pub fn with_filepath(filepath: PathBuf) -> Self {
71 Self {
72 credentials: Arc::new(RwLock::new(HashMap::new())),
73 filepath: Some(filepath),
74 }
75 }
76
77 pub async fn load_from_file(data_dir: &Path) -> Self {
78 let filepath = data_dir.join("auth.json");

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected