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

Function command

atomic-cli/tests/it/kg_service_integration_test.rs:9–20  ·  view source on GitHub ↗
(root: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

7use serde_json::Value;
8
9fn command(root: &Path, args: &[&str]) -> Command {
10 let mut command = Command::new(env!("CARGO_BIN_EXE_atomic"));
11 command
12 .args(args)
13 .current_dir(root)
14 .env("ATOMIC_SERVICE", "local")
15 .env_remove("ATOMIC_RPC")
16 .env("ATOMIC_DB_LOCK_WAIT_MS", "100")
17 .env("ATOMIC_DAEMON_BIN", root.join("no-daemon-binary"))
18 .env("ATOMIC_DAEMON_SOCKET", root.join("no-daemon.socket"));
19 command
20}
21
22fn json(output: Output) -> Value {
23 assert!(

Calls

no outgoing calls

Tested by

no test coverage detected