Implemented the Processable protocol in the library target and conformed the Process object to it.

This commit is contained in:
Javier Cicchelli 2025-01-18 20:04:24 +01:00
parent 02fb6b9345
commit 245529f88f
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,5 @@
import Foundation
// MARK: - Processable
extension Process: Processable {}

View File

@ -0,0 +1,17 @@
import Foundation
protocol Processable {
// MARK: Properties
var arguments: [String]? { get set }
var executableURL: URL? { get set }
var standardError: Any? { get set }
var standardOutput: Any? { get set }
var terminationHandler: (@Sendable (Process) -> Void)? { get set }
// MARK: Functions
func run() throws
}