MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fire

Method fire

atomic-cli/tests/it/hook_health_integration_test.rs:49–62  ·  view source on GitHub ↗
(&self, args: &[&str], input: &[u8], reactor: bool)

Source from the content-addressed store, hash-verified

47 }
48
49 fn fire(&self, args: &[&str], input: &[u8], reactor: bool) -> Output {
50 let mut command = self.command(args);
51 if reactor {
52 command.env("ATOMIC_SERVICE", "reactor");
53 }
54 let mut child = command
55 .stdin(Stdio::piped())
56 .stdout(Stdio::piped())
57 .stderr(Stdio::piped())
58 .spawn()
59 .unwrap();
60 child.stdin.take().unwrap().write_all(input).unwrap();
61 child.wait_with_output().unwrap()
62 }
63
64 fn health(&self) -> HookHealth {
65 let store = atomic_repository::redb_change_store::RedbChangeStore::open_existing(

Calls 3

spawnMethod · 0.80
commandMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected