MCPcopy Create free account
hub / github.com/VimYoung/Spell / custom_called

Function custom_called

spell-cli/src/main.rs:494–500  ·  view source on GitHub ↗
(layer_name: String, command: &str)

Source from the content-addressed store, hash-verified

492}
493
494async fn custom_called(layer_name: String, command: &str) -> Result<(), SpellError> {
495 let request = command.to_string();
496 let path = format!("/tmp/{}_ipc.sock", layer_name.trim());
497 let mut stream = UnixStream::connect(path)?;
498 stream.write_all(request.as_bytes())?;
499 Ok(())
500}
501
502async fn update_value(layer_name: String, values: Args) -> Result<(), SpellError> {
503 let remain_arg: Vec<String> = values.collect();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected