FileExamples

sbt.internal.util.complete.FileExamples
class FileExamples(base: File, prefix: String) extends ExampleSource

Provides path completion examples based on files in the base directory.

Value parameters

base

the directory within which this class will search for completion examples.

prefix

the part of the path already written by the user.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def apply(): LazyList[String]

Attributes

Returns

a (possibly lazy) list of completion example strings. These strings are continuations of user's input. The user's input is incremented with calls to withAddedPrefix.

Definition Classes
override def withAddedPrefix(addedPrefix: String): FileExamples

Value parameters

addedPrefix

a string that just typed in by the user.

Attributes

Returns

a new source of only those examples that start with the string typed by the user so far (with addition of the just added prefix).

Definition Classes