Template support for input parameters #4
@ -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