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

Method command

atomic-cli/tests/it/intent_turn_binding_test.rs:41–56  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

39 }
40
41 fn command(&self) -> Command {
42 let mut command = Command::new(env!("CARGO_BIN_EXE_atomic"));
43 command
44 .current_dir(self.root())
45 .env("HOME", self.home.path())
46 .env("ATOMIC_CONFIG_DIR", self.home.path().join(".atomic"))
47 .env("ATOMIC_SERVICE", "local")
48 .env("ATOMIC_NONINTERACTIVE", "1")
49 .env_remove("ATOMIC_RPC")
50 .env_remove("ATOMIC_SESSION_ID")
51 .env_remove("ATOMIC_AGENT")
52 .env_remove("ATOMIC_AGENT_VERSION")
53 .env_remove("OPENCODE_SESSION_ID")
54 .env_remove("ATOMIC_AGENT_IDENTITY");
55 command
56 }
57
58 fn run(&self, args: &[&str]) -> String {
59 success(self.command().args(args).output().unwrap())

Calls 2

rootMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected