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

encrywm.cli.commands.Validate.scala Maven / Gradle / Ivy

There is a newer version: 0.3.2
Show newest version
package encrywm.cli.commands

import encrywm.cli.Response
import encrywm.common.SourceValidator

import scala.util.Try

object Validate extends Command {

  override def execute(args: Array[String]): Option[Response] = Try {
    SourceValidator.validateFromFile(args.head)
  }.map(_ => Some(Response(0))).getOrElse(Some(Response(200)))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy