aboutsummaryrefslogtreecommitdiff
path: root/stage2/Scaffold.scala
diff options
context:
space:
mode:
Diffstat (limited to 'stage2/Scaffold.scala')
-rw-r--r--stage2/Scaffold.scala14
1 files changed, 12 insertions, 2 deletions
diff --git a/stage2/Scaffold.scala b/stage2/Scaffold.scala
index 6c66b04..e9ce92f 100644
--- a/stage2/Scaffold.scala
+++ b/stage2/Scaffold.scala
@@ -13,6 +13,18 @@ trait Scaffold{
println( GREEN ++ "Created " ++ fileName ++ RESET )
}
+ def createMain(
+ projectDirectory: File
+ ): Unit = {
+ createFile(projectDirectory, "Main.scala", s"""object Main{
+ def main( args: Array[String] ) = {
+ println( Console.GREEN ++ "Hello World" ++ Console.RESET )
+ }
+}
+"""
+ )
+ }
+
def createBasicBuild(
projectDirectory: File
): Unit = {
@@ -39,7 +51,6 @@ class Build(context: Context) extends BasicBuild(context){
}
"""
)
-
}
def createBuildBuild(
@@ -68,7 +79,6 @@ class Build(context: Context) extends BuildBuild(context){
}
"""
)
-
}
/*,