All Downloads are FREE. Search and download functionalities are using the official Maven repository.

abellectl_2.12.1.0.0-RC3.source-code.Exec.scala Maven / Gradle / Ivy

There is a newer version: 1.1.0-RC3
Show newest version
package info.hupel.isabelle.cli

import scala.concurrent._

object Exec extends Command {

  override def run(bundle: Bundle, args: List[String])(implicit ec: ExecutionContext): Future[Unit] = args match {
    case tool :: args =>
      Future.successful {
        logger.info(s"Starting Isabelle tool $tool with arguments ${args.mkString(" ")} ...")
        val rc = bundle.env.exec(tool, args)
        logger.info(s"Exited with status $rc")
        if (rc > 0)
          sys.exit(rc)
      }
    case Nil =>
      sys.error("missing parameters for 'exec'")
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy