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

Method command

atomic-cli/tests/it/intent_turn_binding_test.rs:41–53  ·  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_IDENTITY");
52 command
53 }
54
55 fn run(&self, args: &[&str]) -> String {
56 success(self.command().args(args).output().unwrap())

Callers 3

runMethod · 0.45
hookMethod · 0.45

Calls 2

rootMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected