Package

sbt.internal.util

complete

Permalink

package complete

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Completion extends AnyRef

    Permalink

    Represents a completion.

    Represents a completion. The abstract members display and append are best explained with an example.

    Assuming space-delimited tokens, processing this: am is are w<TAB> could produce these Completions: Completion { display = "was"; append = "as" } Completion { display = "were"; append = "ere" } to suggest the tokens "was" and "were".

    In this way, two pieces of information are preserved: 1) what needs to be appended to the current input if a completion is selected 2) the full token being completed, which is useful for presenting a user with choices to select

  2. sealed trait Completions extends AnyRef

    Permalink

    Represents a set of completions.

    Represents a set of completions. It exists instead of implicitly defined operations on top of Set[Completion] for laziness.

  3. final class DisplayOnly extends Completion

    Permalink
  4. trait ExampleSource extends AnyRef

    Permalink

    These sources of examples are used in parsers for user input completion.

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

  5. class FileExamples extends ExampleSource

    Permalink

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

  6. final case class Finite(value: Int) extends UpperBound with Product with Serializable

    Permalink

    Represents a finite upper bound.

    Represents a finite upper bound. The maximum allowed value is 'value', inclusive. It must positive.

  7. sealed case class FixedSetExamples(examples: Iterable[String]) extends ExampleSource with Product with Serializable

    Permalink

    A convenience example source that wraps any collection of strings into a source of examples.

    A convenience example source that wraps any collection of strings into a source of examples.

    examples

    the examples that will be displayed to the user when they press the TAB key.

  8. final class History extends AnyRef

    Permalink
  9. sealed trait Parser[+T] extends AnyRef

    Permalink

    A String parser that provides semi-automatic tab completion.

    A String parser that provides semi-automatic tab completion. A successful parse results in a value of type T. The methods in this trait are what must be implemented to define a new Parser implementation, but are not typically useful for common usage. Instead, most useful methods for combining smaller parsers into larger parsers are implicitly added by the RichParser type.

  10. trait ParserMain extends AnyRef

    Permalink
  11. trait Parsers extends AnyRef

    Permalink

    Provides standard implementations of commonly useful Parsers.

  12. sealed trait RichParser[A] extends AnyRef

    Permalink
  13. final class Suggestion extends Completion

    Permalink
  14. final class Token extends Completion

    Permalink
  15. sealed trait TokenCompletions extends AnyRef

    Permalink
  16. sealed trait UpperBound extends AnyRef

    Permalink
  17. sealed trait ValidParser[T] extends Parser[T]

    Permalink

Value Members

  1. object Completion

    Permalink
  2. object Completions

    Permalink
  3. object DefaultParsers extends Parsers with ParserMain

    Permalink

    Provides common Parser implementations and helper methods.

  4. object EditDistance

    Permalink

  5. object History

    Permalink
  6. object HistoryCommands

    Permalink
  7. object Infinite extends UpperBound with Product with Serializable

    Permalink

    Represents unbounded.

  8. object JLineCompletion

    Permalink
  9. object Parser extends ParserMain

    Permalink

    Contains Parser implementation helper methods not typically needed for using parsers.

  10. object Parsers extends Parsers

    Permalink

    Provides standard Parser implementations.

  11. object ProcessError

    Permalink
  12. object TokenCompletions

    Permalink
  13. object UpperBound

    Permalink

Ungrouped