pub fn process_script_output(
output: Output,
from_custom_notification: bool,
) -> Result<bool, Error>
Expand description
Processes the output from script execution.
§Arguments
output
- The process output containing stdout, stderr, and statusfrom_custom_notification
- Whether the script is from a custom notification
§Returns
Result<bool, anyhow::Error>
- Returns parsed boolean result or error
§Errors
Returns an error if:
- The script execution was not successful (non-zero exit code)
- The output cannot be parsed as a boolean
- The script produced no output