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

Function atomic

atomic-cli/tests/it/repository_discovery_integration_test.rs:9–23  ·  view source on GitHub ↗
(dir: &Path, home: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

7use tempfile::TempDir;
8
9fn atomic(dir: &Path, home: &Path, args: &[&str]) -> Output {
10 Command::new(env!("CARGO_BIN_EXE_atomic"))
11 .arg("--no-color")
12 .args(args)
13 .current_dir(dir)
14 .env("HOME", home)
15 .env("USERPROFILE", home)
16 // Repository initialization must use local embeddings even when the
17 // developer running this test has provider credentials configured.
18 .env_remove("VOYAGE_API_KEY")
19 .env_remove("OPENAI_API_KEY")
20 .env_remove("ANTHROPIC_API_KEY")
21 .output()
22 .expect("run atomic")
23}
24
25fn assert_not_repository(output: &Output, dir: &Path) {
26 let stderr = String::from_utf8_lossy(&output.stderr);

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected