MCPcopy Index your code
hub / github.com/endbasic/endbasic / exec

Method exec

core/tests/testutils/callables/out_any_value_optional_cmd.rs:56–64  ·  view source on GitHub ↗
(&self, scope: Scope<'_>)

Source from the content-addressed store, hash-verified

54 }
55
56 fn exec(&self, scope: Scope<'_>) -> CallResult<()> {
57 let (formatted, _present, sep) = format_vararg(&scope, 0);
58 assert_eq!(ArgSep::End, sep, "Command only expects one argument");
59
60 let mut output = self.output.borrow_mut();
61 output.push_str(&formatted);
62 output.push('\n');
63 Ok(())
64 }
65}

Callers

nothing calls this directly

Calls 3

format_varargFunction · 0.85
push_strMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected