This PR contains the work done to support input parameters for the `create` command of the executable target, and to render content dynamically for the newly-generated project. Reviewed-on: #4 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
20 lines
386 B
Swift
20 lines
386 B
Swift
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
|
|
}
|
|
|