Implement and archive Phase 5 form designer
This commit is contained in:
@@ -293,6 +293,15 @@ impl Host for CaptureHost {
|
||||
}
|
||||
}
|
||||
|
||||
/// Shared child command, inheriting the foreground terminal and stdio.
|
||||
pub fn shell_command(command: &str) -> std::process::Command {
|
||||
let mut child = std::process::Command::new(if cfg!(windows) { "cmd" } else { "sh" });
|
||||
if !command.is_empty() {
|
||||
child.args([if cfg!(windows) { "/C" } else { "-c" }, command]);
|
||||
}
|
||||
child
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
@@ -397,12 +406,3 @@ mod tests {
|
||||
assert_eq!(h.next_event(false), None);
|
||||
}
|
||||
}
|
||||
|
||||
/// Shared child command, inheriting the foreground terminal and stdio.
|
||||
pub fn shell_command(command: &str) -> std::process::Command {
|
||||
let mut child = std::process::Command::new(if cfg!(windows) { "cmd" } else { "sh" });
|
||||
if !command.is_empty() {
|
||||
child.args([if cfg!(windows) { "/C" } else { "-c" }, command]);
|
||||
}
|
||||
child
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user