Skip to content

Instantly share code, notes, and snippets.

@mdedetrich
Created October 15, 2013 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdedetrich/6988966 to your computer and use it in GitHub Desktop.
Save mdedetrich/6988966 to your computer and use it in GitHub Desktop.
Basic input task
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