ExampleSource

sbt.internal.util.complete.ExampleSource

These sources of examples are used in parsers for user input completion. An example of such a source is the sbt.internal.util.complete.FileExamples class, which provides a list of suggested files to the user as they press the TAB key in the console.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def apply(): Iterable[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.

def withAddedPrefix(addedPrefix: String): ExampleSource

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).