Files
2026-06-22 02:24:28 -04:00

30 lines
727 B
Swift

import ArgumentParser
import Foundation
import XKit
import PackLib
import Subprocess
struct DevBSPCommand: AsyncParsableCommand {
static let configuration = CommandConfiguration(
commandName: "build-server",
abstract: "Run build server",
)
@Option
var triple: String?
func run() async throws {
let settings = try await BuildSettings(
configuration: .debug,
triple: triple ?? PackOperation.defaultTriple
)
try await Subprocess.run(
settings.buildServerInvocation(),
input: .standardInput,
output: .currentStandardOutput,
error: .currentStandardError,
)
.checkSuccess()
}
}