mirror of https://github.com/sbt/sbt.git
Merge pull request #1 from Duhemm/setup-travis
Setup travis, public tests in utilLogging
This commit is contained in:
commit
d7b4c00999
|
|
@ -1,7 +1,7 @@
|
|||
package sbt.complete
|
||||
|
||||
import java.io.File
|
||||
import sbt.IO
|
||||
import sbt.io.IO
|
||||
|
||||
/**
|
||||
* These sources of examples are used in parsers for user input completion. An example of such a source is the
|
||||
|
|
@ -56,4 +56,4 @@ class FileExamples(base: File, prefix: String = "") extends ExampleSource {
|
|||
|
||||
private def dirStartsWithPrefix(relativizedPath: String): Boolean =
|
||||
(relativizedPath startsWith prefix) || (prefix startsWith relativizedPath)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ package sbt
|
|||
package complete
|
||||
|
||||
import java.io.File
|
||||
import sbt.io.IO
|
||||
|
||||
object HistoryCommands {
|
||||
val Start = "!"
|
||||
|
|
@ -70,4 +71,4 @@ object HistoryCommands {
|
|||
|
||||
val actionParser: Parser[complete.History => Option[List[String]]] =
|
||||
Start ~> (help | last | execInt | list | execStr) // execStr must come last
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@ package sbt.complete
|
|||
|
||||
import org.specs2.mutable.Specification
|
||||
import org.specs2.specification.Scope
|
||||
import sbt.IO.withTemporaryDirectory
|
||||
import java.io.File
|
||||
import sbt.IO._
|
||||
import sbt.io.IO._
|
||||
|
||||
class FileExamplesTest extends Specification {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue