Created
April 13, 2012 17:17
-
-
Save hexx/2378454 to your computer and use it in GitHub Desktop.
Giter8 Template for Conscript
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
package com.github.hexx | |
/** The launched conscript entry point */ | |
class App extends xsbti.AppMain { | |
def run(config: xsbti.AppConfiguration) = { | |
Exit(App.run(config.arguments)) | |
} | |
} | |
object App { | |
/** Shared by the launched version and the runnable version, | |
* returns the process status code */ | |
def run(args: Array[String]): Int = { | |
println("Hello World: " + args.mkString(" ")) | |
0 | |
} | |
/** Standard runnable class entrypoint */ | |
def main(args: Array[String]) { | |
System.exit(run(args)) | |
} | |
} | |
case class Exit(val code: Int) extends xsbti.Exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment