aboutsummaryrefslogtreecommitdiff
path: root/stage2/Scaffold.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-05-03 10:29:34 +0300
committerChristopher Vogt <oss.nsp@cvogt.org>2016-05-03 10:53:01 +0300
commit5f93e722c228fbae4c6aaaac4133e6754c1b3afa (patch)
tree53d22fa160343c48b1e398b24680d54b7cdbe6bb /stage2/Scaffold.scala
parent84eb0912e1137f523e51d7bd01666eadcd5acd28 (diff)
downloadcbt-5f93e722c228fbae4c6aaaac4133e6754c1b3afa.tar.gz
cbt-5f93e722c228fbae4c6aaaac4133e6754c1b3afa.tar.bz2
cbt-5f93e722c228fbae4c6aaaac4133e6754c1b3afa.zip
create scaffolding for Main file
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){
}
"""
)
-
}
/*,