Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

418 B
Raw Blame
import Foundation

/// Protocol for process execution
protocol ProcessRunner {
    func run(executable: String, arguments: [String]) throws
}

class DefaultProcessRunner: ProcessRunner {
    func run(executable: String, arguments: [String]) throws {
        let process = Process()
        process.executableURL = URL(fileURLWithPath: executable)
        process.arguments = arguments
        try process.run()
    }
}