1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Build fix.

This commit is contained in:
Cedric Beust 2015-11-09 16:04:51 -08:00
parent 70302d6dca
commit efb42c386a

View file

@ -15,8 +15,8 @@ open class RunCommand(val command: String) {
var directory = File(".")
var env = hashMapOf<String, String>()
fun run(args: List<String>, error: Function1<List<String>, Unit>? = defaultError,
success: Function1<List<String>, Unit>? = defaultSuccess) : Int {
fun run(args: List<String>, errorCb: Function1<List<String>, Unit> = defaultError,
successCb: Function1<List<String>, Unit> = defaultSuccess) : Int {
val allArgs = arrayListOf<String>()
allArgs.add(command)
allArgs.addAll(args)