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

Method new

atomic-repository/src/change_source/process.rs:22–32  ·  view source on GitHub ↗
(program: impl Into<String>, current_dir: impl Into<PathBuf>)

Source from the content-addressed store, hash-verified

20
21impl CommandSpec {
22 pub fn new(program: impl Into<String>, current_dir: impl Into<PathBuf>) -> Self {
23 Self {
24 program: program.into(),
25 args: Vec::new(),
26 current_dir: current_dir.into(),
27 env: BTreeMap::new(),
28 stdin: Vec::new(),
29 timeout: Duration::from_secs(5),
30 max_output_bytes: 16 * 1024 * 1024,
31 }
32 }
33}
34
35#[derive(Clone, Debug, PartialEq, Eq)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected