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

Method atomic

atomic-cli/tests/it/record_stale_conflict_cleanup_test.rs:103–117  ·  view source on GitHub ↗
(&self, args: &[&str])

Source from the content-addressed store, hash-verified

101 }
102
103 fn atomic(&self, args: &[&str]) -> Output {
104 let mut command = Command::new(ATOMIC_BIN);
105 command
106 .args(args)
107 .current_dir(self.root())
108 .env("HOME", self.home.path())
109 .env("ATOMIC_HOME", self.home.path().join(".atomic"))
110 .env("ATOMIC_NONINTERACTIVE", "1")
111 .env("NO_COLOR", "1")
112 .env("CLICOLOR", "0")
113 .env("TERM", "dumb")
114 .stdout(Stdio::piped())
115 .stderr(Stdio::piped());
116 command.output().expect("wait for atomic")
117 }
118
119 fn atomic_ok(&self, args: &[&str]) -> Output {
120 let output = self.atomic(args);

Calls 3

rootMethod · 0.45
pathMethod · 0.45
outputMethod · 0.45

Tested by

no test coverage detected