StandaloneBashCompletion

Standalone bash completion. Completion logic is generated in advance; requires bash-completion package installed.

class Object
trait Matchable
class Any

Type members

Classlikes

case class CompletionReturned() extends Throwable

Value members

Concrete methods

def all(out: PrintStream, fullCommand: String, paramInfos: Seq[ParamInfo], commandInfos: Seq[CommandInfo]): Unit

Generate completion code for a whole command line application, recursively invoking nested commands.

Generate completion code for a whole command line application, recursively invoking nested commands.

def command(out: PrintStream, prog: String, subcommandChain: Seq[String], paramInfos: Seq[ParamInfo]): Unit

Generate completion funtion for a command.

Generate completion funtion for a command.

def completeAndThrow(out: PrintStream, paramInfos: Seq[ParamInfo], commandInfos: Seq[CommandInfo], args: Iterable[String]): Unit
def header(out: PrintStream): Unit
def parameters(out: PrintStream, prog: String, subcommandChain: Seq[String], paramInfos: Seq[ParamInfo]): Unit

Generate completion funtion for parameters. All parameters of a command must be given at once, since the order of positionals affects the name.

Generate completion funtion for parameters. All parameters of a command must be given at once, since the order of positionals affects the name.

def utils(out: PrintStream, prog: String): Unit

Generate utility functions and completion entry point.

Generate utility functions and completion entry point.