(program: impl Into<String>, current_dir: impl Into<PathBuf>)
| 20 | |
| 21 | impl 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)] |
nothing calls this directly
no outgoing calls
no test coverage detected