Returns the hook output, if it exists. Note that this includes hooks that have output but are not successful, e.g. command hooks that have a nonzero exit code.
(&self)
| 522 | /// Note that this includes hooks that have output but are not successful, e.g. command hooks |
| 523 | /// that have a nonzero exit code. |
| 524 | pub fn output(&self) -> Option<&str> { |
| 525 | match self { |
| 526 | HookResult::Command(Ok(CommandResult { output, .. })) => Some(output), |
| 527 | _ => None, |
| 528 | } |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | #[derive(Debug, Clone, Serialize, Deserialize)] |
no outgoing calls
no test coverage detected