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

Method with_variable

crates/opencode-command/src/lib.rs:52–55  ·  view source on GitHub ↗
(mut self, key: String, value: String)

Source from the content-addressed store, hash-verified

50 }
51
52 pub fn with_variable(mut self, key: String, value: String) -> Self {
53 self.variables.insert(key, value);
54 self
55 }
56}
57
58/// Command registry for loading and executing commands

Callers 1

test_render_templateFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_render_templateFunction · 0.64