object Command
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Command
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[T](name: String, briefHelp: (String, String), detail: String)(parser: (State) ⇒ Parser[T])(effect: (State, T) ⇒ State): Command
-
def
apply[T](name: String, help: Help = Help.empty)(parser: (State) ⇒ Parser[T])(effect: (State, T) ⇒ State): Command
Construct a command with the given name, parser and effect.
- def applyEffect[T](parser: (State) ⇒ Parser[T])(effect: (State, T) ⇒ State): (State) ⇒ Parser[() ⇒ State]
- def applyEffect[T](p: Parser[T])(f: (T) ⇒ State): Parser[() ⇒ State]
- def arb[T](parser: (State) ⇒ Parser[T], help: Help = Help.empty)(effect: (State, T) ⇒ State): Command
- def args(name: String, briefHelp: (String, String), detail: String, display: String)(f: (State, Seq[String]) ⇒ State): Command
-
def
args(name: String, display: String, help: Help = Help.empty)(f: (State, Seq[String]) ⇒ State): Command
Construct a multi-argument command with the given name, tab completion display and effect.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def combine(cmds: Seq[Command]): (State) ⇒ Parser[() ⇒ State]
- def command(name: String, briefHelp: String, detail: String)(f: (State) ⇒ State): Command
-
def
command(name: String, help: Help = Help.empty)(f: (State) ⇒ State): Command
Construct a no-argument command with the given name and effect.
- def custom(parser: (State) ⇒ Parser[() ⇒ State], help: Help = Help.empty): Command
- def customHelp(parser: (State) ⇒ Parser[() ⇒ State], help: (State) ⇒ Help): Command
- def distance(a: String, b: String): Int
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invalidValue(label: String, allowed: Iterable[String])(value: String): String
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def make(name: String, briefHelp: (String, String), detail: String)(parser: (State) ⇒ Parser[() ⇒ State]): Command
- def make(name: String, help: Help = Help.empty)(parser: (State) ⇒ Parser[() ⇒ State]): Command
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def process(command: String, state: State): State
- def similar(value: String, allowed: Iterable[String]): String
- def simpleParser(commandMap: Map[String, (State) ⇒ Parser[() ⇒ State]]): (State) ⇒ Parser[() ⇒ State]
- def simpleParser(cmds: Seq[SimpleCommand]): (State) ⇒ Parser[() ⇒ State]
- def single(name: String, briefHelp: (String, String), detail: String)(f: (State, String) ⇒ State): Command
-
def
single(name: String, help: Help = Help.empty)(f: (State, String) ⇒ State): Command
Construct a single-argument command with the given name and effect.
- def spacedAny(name: String): Parser[String]
- def spacedC(name: String, c: Parser[Char]): Parser[String]
- def suggestions(a: String, bs: Seq[String], maxDistance: Int = 3, maxSuggestions: Int = 3): Seq[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def validID(name: String): Boolean
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()