feat: fallback unified_exec to shell_command (#8075)

This commit is contained in:
jif-oai
2025-12-17 10:29:45 +00:00
committed by GitHub
parent 4897efcced
commit 813bdb9010
4 changed files with 59 additions and 1 deletions

View File

@@ -133,6 +133,15 @@ pub struct SpawnedPty {
pub exit_rx: oneshot::Receiver<i32>,
}
#[allow(unreachable_code)]
pub fn conpty_supported() -> bool {
// Annotation required because `win` can't be compiled on other OS.
#[cfg(windows)]
return win::conpty_supported();
true
}
#[cfg(windows)]
fn platform_native_pty_system() -> Box<dyn portable_pty::PtySystem + Send> {
Box::new(win::ConPtySystem::default())