mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-20 23:54:23 +01:00
chore: re-add tests, tidy up goose-cli/Cargo.toml, send + sync logic (#1193)
This commit is contained in:
@@ -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()?;
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user