Skip to content

Instantly share code, notes, and snippets.

@hexx
Created April 13, 2012 17:17
Show Gist options
  • Save hexx/2378454 to your computer and use it in GitHub Desktop.
Save hexx/2378454 to your computer and use it in GitHub Desktop.
Giter8 Template for Conscript
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