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

Method with_env

atomic-cli/tests/it/agent_git_commit_absorb_test.rs:69–82  ·  view source on GitHub ↗
(&self, mut command: Command)

Source from the content-addressed store, hash-verified

67 }
68
69 fn with_env(&self, mut command: Command) -> Command {
70 command
71 .current_dir(self.root())
72 .env("ATOMIC_SERVICE", "local")
73 .env("ATOMIC_CONFIG_DIR", self.root().join(".git/test-config"))
74 .env("ATOMIC_NONINTERACTIVE", "1")
75 .env("GIT_CONFIG_GLOBAL", "/dev/null")
76 .env("GIT_CONFIG_NOSYSTEM", "1")
77 .env("GIT_AUTHOR_NAME", GIT_AUTHOR)
78 .env("GIT_AUTHOR_EMAIL", "bridge@example.invalid")
79 .env("GIT_COMMITTER_NAME", GIT_AUTHOR)
80 .env("GIT_COMMITTER_EMAIL", "bridge@example.invalid");
81 command
82 }
83
84 fn atomic_output(&self, args: &[&str]) -> Output {
85 self.with_env(Command::new(env!("CARGO_BIN_EXE_atomic")))

Callers 4

atomic_outputMethod · 0.80
gitMethod · 0.80
hook_output_withMethod · 0.80
head_is_detachedMethod · 0.80

Calls 1

rootMethod · 0.45

Tested by

no test coverage detected