diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-05-03 10:29:34 +0300 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-05-03 10:53:01 +0300 |
commit | 5f93e722c228fbae4c6aaaac4133e6754c1b3afa (patch) | |
tree | 53d22fa160343c48b1e398b24680d54b7cdbe6bb /stage2/Scaffold.scala | |
parent | 84eb0912e1137f523e51d7bd01666eadcd5acd28 (diff) | |
download | cbt-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.scala | 14 |
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){ } """ ) - } /*, |