We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a97de8 + 705f585 commit 4c5972bCopy full SHA for 4c5972b
danger-kotlin/src/runnerMain/kotlin/Main.kt
@@ -25,7 +25,7 @@ fun main(args: Array<String>) {
25
else -> {
26
when (val command = Command.forArgument(args.first())) {
27
Command.CI, Command.LOCAL, Command.PR -> {
28
- DangerJS.process(command, PROCESS_DANGER_KOTLIN, args.drop(1))
+ DangerJS.process(command, PROCESS_DANGER_KOTLIN, args.drop(1).map { if(it.contains(" ")) "'$it'" else it })
29
}
30
Command.RUNNER -> DangerKotlin.run()
31
else -> Log.error("Invalid command received: $command")
0 commit comments