Fix task execution andlogging

This commit is contained in:
2025-10-06 17:38:40 +02:00
parent 5218ed37b1
commit e6f3474fd9
11 changed files with 33 additions and 18 deletions

View File

@@ -32,10 +32,12 @@ object Main {
logger.info(s"Executing subcommand ${c.name}")
val tasks = c.getRequiredTasks
logger.debug(s"Subcommand requires ${tasks.size} tasks")
logger.info(s"Validating tasks")
tasks.foreach(_.validate())
logger.info(s"Executing tasks")
tasks.foreach(_.execute())
try {
tasks.foreach(_.run())
} catch {
case e: Exception =>
logger.error(s"Error during task execution, see above!")
}
case _ =>
logger.error(s"Found no subcommand, see help below")
conf.printHelp()