blob: 41d9f3ff4c3929a850b975c0f4d5cf1a8a6b62ac (
plain) (
tree)
|
|
package cbt
// CLI interop
case class ExitCode( integer: Int ) extends interfaces.ExitCode {
def ||( other: => ExitCode ) = if ( this == ExitCode.Success ) this else other
def &&( other: => ExitCode ) = if ( this != ExitCode.Success ) this else other
}
object ExitCode {
val Success = ExitCode( 0 )
val Failure = ExitCode( 1 )
}
|