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

Method watchman

atomic-repository/src/change_source/watchman.rs:42–54  ·  view source on GitHub ↗
(
        &self,
        root: &Path,
        args: &[&str],
        stdin: Vec<u8>,
    )

Source from the content-addressed store, hash-verified

40 }
41
42 fn watchman(
43 &self,
44 root: &Path,
45 args: &[&str],
46 stdin: Vec<u8>,
47 ) -> Result<CommandOutput, ChangeSourceError> {
48 let mut spec = CommandSpec::new("watchman", root);
49 spec.args = args.iter().map(|arg| (*arg).to_owned()).collect();
50 spec.stdin = stdin;
51 spec.timeout = self.timeout;
52 spec.max_output_bytes = self.max_candidates.saturating_mul(4096).max(64 * 1024);
53 self.runner.run(&spec)
54 }
55}
56
57impl ChangeSource for WatchmanChangeSource {

Callers 1

changesMethod · 0.80

Calls 3

collectMethod · 0.45
iterMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected