Created
October 15, 2013 09:24
-
-
Save mdedetrich/6988966 to your computer and use it in GitHub Desktop.
Basic input task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val demo = inputKey[Unit]("A demo input task.") | |
val demoTask = demo := { | |
// get the result of parsing | |
val args: String = trimmed(StringBasic).parsed | |
// Here, we also use the value of the `scalaVersion` setting | |
println("The current Scala version is " + scalaVersion.value) | |
println("The arguments to demo were:") | |
println(args) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment