Implemented the Processable protocol in the library target and conformed the Process object to it.
This commit is contained in:
parent
02fb6b9345
commit
245529f88f
@ -0,0 +1,5 @@
|
||||
import Foundation
|
||||
|
||||
// MARK: - Processable
|
||||
|
||||
extension Process: Processable {}
|
17
Library/Sources/Internal/Protocols/Processable.swift
Normal file
17
Library/Sources/Internal/Protocols/Processable.swift
Normal 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
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user