Download crates/forge_domain/src/shell.rs from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_domain/src/shell.rs
- Command line
-
hf download hf://SaylorTwift/forgecode/crates/forge_domain/src/shell.rs
-
curl -L -o shell.rs https://huggingface.co/SaylorTwift/forgecode/resolve/main/crates/forge_domain/src/shell.rs
312 Bytes
| /// Output from a command execution | |
| pub struct CommandOutput { | |
| pub command: String, | |
| pub stdout: String, | |
| pub stderr: String, | |
| pub exit_code: Option<i32>, | |
| } | |
| impl CommandOutput { | |
| pub fn success(&self) -> bool { | |
| self.exit_code.is_none_or(|code| code >= 0) | |
| } | |
| } | |