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

Method command

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

Source from the content-addressed store, hash-verified

22 }
23
24 fn command(&self, args: &[&str]) -> Command {
25 let mut command = Command::new(env!("CARGO_BIN_EXE_atomic"));
26 command
27 .args(args)
28 .current_dir(self.repo.path())
29 .env("HOME", self.home.path())
30 .env("USERPROFILE", self.home.path())
31 .env("XDG_CONFIG_HOME", self.home.path().join("config"))
32 .env("APPDATA", self.home.path().join("config"))
33 .env("LOCALAPPDATA", self.home.path().join("local"))
34 .env("ATOMIC_SERVICE", "local")
35 .env_remove("ATOMIC_AGENT_IDENTITY")
36 .env_remove("ATOMIC_SESSION_ID")
37 .env_remove("ATOMIC_PARENT_SESSION_ID")
38 .env(
39 "ATOMIC_DAEMON_SOCKET",
40 self.home.path().join("missing.sock"),
41 )
42 .env(
43 "ATOMIC_DAEMON_BIN",
44 self.home.path().join("missing-atomicd"),
45 );
46 command
47 }
48
49 fn fire(&self, args: &[&str], input: &[u8], reactor: bool) -> Output {
50 let mut command = self.command(args);

Calls 1

pathMethod · 0.45

Tested by

no test coverage detected