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

Method new

crates/opencode-tool/src/read.rs:27–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26impl ReadTool {
27 pub fn new() -> Self {
28 Self {
29 directory: std::env::current_dir().unwrap_or_default(),
30 }
31 }
32
33 pub fn with_directory(directory: impl Into<PathBuf>) -> Self {
34 Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected