MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-command/src/lib.rs:39–45  ·  view source on GitHub ↗
(working_directory: PathBuf)

Source from the content-addressed store, hash-verified

37
38impl CommandContext {
39 pub fn new(working_directory: PathBuf) -> Self {
40 Self {
41 arguments: Vec::new(),
42 variables: HashMap::new(),
43 working_directory,
44 }
45 }
46
47 pub fn with_arguments(mut self, args: Vec<String>) -> Self {
48 self.arguments = args;

Callers

nothing calls this directly

Calls 2

newFunction · 0.85

Tested by

no test coverage detected