First toolflow version
This commit is contained in:
17
toolflow/src/main/scala/com/minres/tgc/hammer/Main.scala
Normal file
17
toolflow/src/main/scala/com/minres/tgc/hammer/Main.scala
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.minres.tgc.hammer
|
||||
|
||||
import com.minres.tgc.hammer.cli.{HammerConf, MySubcommand}
|
||||
|
||||
object Main {
|
||||
def main(args: Array[String]): Unit = {
|
||||
val conf = new HammerConf(args.toIndexedSeq)
|
||||
|
||||
conf.subcommand match {
|
||||
case Some(c: MySubcommand) =>
|
||||
val tasks = c.getRequiredTasks
|
||||
tasks.foreach(_.validate())
|
||||
tasks.foreach(_.execute())
|
||||
case _ =>
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user