Cleanup & simplify actions/add-alias

This commit is contained in:
Dale Wijnand 2018-01-24 13:10:39 +00:00
parent 6038ec51c3
commit 705eeddf5c
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
object A extends App {
if(args(0).toBoolean) () else sys.error("Fail")
object A {
def main(args: Array[String]): Unit = {
if (args(0).toBoolean) () else sys.error("Fail")
}
}

View File

@ -1,2 +1,2 @@
addCommandAlias("demo-success", "run true") ++
addCommandAlias("demo-success", "run true")
addCommandAlias("demo-failure", "run false")