aboutsummaryrefslogtreecommitdiff
path: root/libraries/common-1/ExitCode.scala
blob: 41d9f3ff4c3929a850b975c0f4d5cf1a8a6b62ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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 )
}