We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
arguments
1 parent 81c95ea commit d47b283Copy full SHA for d47b283
Sources/run-script/Config.swift
@@ -20,4 +20,6 @@ struct Script: Codable {
20
21
let path: String?
22
let script: String?
23
+
24
+ let arguments: [String]?
25
}
Sources/run-script/main.swift
@@ -52,6 +52,8 @@ func run(_ script: Script) throws {
52
53
if let path = script.path {
54
process.arguments = [path]
55
+ } else if let arguments = script.arguments, !arguments.isEmpty {
56
+ process.arguments = arguments
57
} else if let script = script.script {
58
process.arguments = ["-c", script]
59
0 commit comments