chore: re-add tests, tidy up goose-cli/Cargo.toml, send + sync logic (#1193)

This commit is contained in:
Kalvin C
2025-02-11 10:16:05 -08:00
committed by GitHub
parent 2386a6a864
commit 145cdf2937
4 changed files with 66 additions and 12 deletions

View File

@@ -4,10 +4,6 @@ use std::process::Command;
pub struct MacOSAutomation;
// MacOSAutomation is Send + Sync because it contains no shared state
unsafe impl Send for MacOSAutomation {}
unsafe impl Sync for MacOSAutomation {}
impl SystemAutomation for MacOSAutomation {
fn execute_system_script(&self, script: &str) -> std::io::Result<String> {
let output = Command::new("osascript").arg("-e").arg(script).output()?;

View File

@@ -4,10 +4,6 @@ use std::process::Command;
pub struct WindowsAutomation;
// WindowsAutomation is Send + Sync because it contains no shared state
unsafe impl Send for WindowsAutomation {}
unsafe impl Sync for WindowsAutomation {}
impl SystemAutomation for WindowsAutomation {
fn execute_system_script(&self, script: &str) -> std::io::Result<String> {
let output = Command::new("powershell")