Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.34 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def sendCommand(line: String): Boolean = {
  2.           val compileRegex  = """^>>compile (.*)$""".r
  3.           val updateRegex   = """^>>update\s+(.*)""".r          
  4.          
  5.           line match {
  6.             case compileRegex(xs)   => pbm.buildManagerCompile(xs)
  7.             case updateRegex(line)  => runUpdate(line)
  8.           }
  9.         }