pub async fn confirm_with(
askpass: &OsString,
prompt: &str,
) -> Result<bool, GitwayError>Expand description
Spawns askpass with the given prompt and returns whether it
exited 0. Exposed as a separate function so tests can drive the
confirmation path with a known-good script without having to mutate
the process environment.
ยงErrors
Returns GitwayError when the path fails security validation
(not absolute, world-writable), the spawn itself fails, or the
child does not exit within [ASKPASS_TIMEOUT].