Implemented the TerminalService service for the library target

This commit is contained in:
2025-02-08 10:22:52 +01:00
parent 33ae67fc58
commit 07e8012faf
6 changed files with 243 additions and 0 deletions
@@ -0,0 +1,19 @@
import Foundation
public protocol TerminalServicing {
// MARK: Functions
@discardableResult
func run(_ executableURL: URL, arguments: [String]) async throws (TerminalServiceError) -> String
}
// MARK: - Errors
public enum TerminalServiceError: Error, Equatable {
case captured(_ output: String)
case output(_ output: String)
case unexpected
}