MCPcopy Create free account
hub / github.com/delinoio/oss / command_with_program

Method command_with_program

crates/nodeup/tests/cli.rs:108–112  ·  view source on GitHub ↗
(&self, program: &Path)

Source from the content-addressed store, hash-verified

106 }
107
108 fn command_with_program(&self, program: &Path) -> std::process::Command {
109 let mut command = std::process::Command::new(program);
110 self.apply_env_std(&mut command);
111 command
112 }
113
114 fn apply_env(&self, command: &mut Command) {
115 command.env("NODEUP_DATA_HOME", &self.data_root);

Calls 1

apply_env_stdMethod · 0.80

Tested by

no test coverage detected