Erik's Weblog 2.0

July 13, 2016 +1 more...


Command Line Execution Plug-in for Kobalt

I've just finished a plug-in for C├ędric's Kobalt build system based on Kotlin.

The plug-in allows for the execution of system commands, similarly to the Gradle Exec or Ant Exec tasks.

import net.thauvin.erik.kobalt.plugin.exec.*

var pl = plugins("net.thauvin.erik:kobalt-exc:")

var p = project {
    name = "example"

    exec {
        commandLine(listOf("echo", "Hello, World!"))

Documentation and source are on GitHub.

Post a comment

Comment Preview