| 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()) |