package launcher
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
class
ClassOptionSchema extends OptionSchema
OptionSchema created from a class definition
-
class
CommandLauncher extends LogSupport
Command launcher.
Command launcher.
class MyCommand(@option(prefix="-h,--help", description="display help", isHelp=true) help:Boolean) { @command(description="Say hello") def hello(@option(prefix="-r", description="repeat times") repeat:Int=1, @argument message:String = "hello") { for(i <- 0 until repeat) println(message) } } Launcher.execute[MyCommand]("hello -r 3") // hello x 3
-
trait
HelpMessagePrinter extends AnyRef
Interface for printing help messages
- class Launcher extends AnyRef
- case class LauncherInfo(name: String, description: String, usage: String, isDefault: Boolean = false) extends Product with Serializable
- case class LauncherInstance(launcher: CommandLauncher, instance: Any) extends Product with Serializable
-
case class
LauncherResult(launcherStack: List[LauncherInstance], result: Option[Any]) extends Product with Serializable
Command execution results
-
class
MethodOptionSchema extends OptionSchema
OptionSchema created from a method definition
-
class
OptionParser extends LogSupport
CommandTrait-line argument parser
-
sealed
trait
OptionSchema extends LogSupport
Schema of the command line options
-
sealed
trait
StringTree extends AnyRef
Holder of structured data consisting of named values.
Holder of structured data consisting of named values. ValueHolder is immutable, so the set operations in this class return another ValueHolder and never modify the original ValueHolder.
A(a, B(b, c)) { a: apple, B:{b:book, c:car} } val n1 = EmptyNode.set("a", apple) => Node(a -> Leaf(apple)) val n2 = n1.set("B.b", "book") => Node(a -> Leaf(apple), B -> EmptyNode.set("b", "book")) => Node(a -> apple, B->Node(b -> Leaf(book))) val n3 = n2.set("B.c", "car") => Node(a ->apple, B->Node(b -> Leaf(book), c->Leaf(car)))
- class argument extends Annotation with Annotation with ClassfileAnnotation
- class command extends Annotation with Annotation with ClassfileAnnotation
- class option extends Annotation with Annotation with ClassfileAnnotation
Value Members
- object ClassOptionSchema extends LogSupport
- object HelpMessagePrinter extends LogSupport
-
object
Launcher extends LogSupport
Command launcher
-
object
OptionParser extends LogSupport
Creates option parsers
- object StringTree extends LogSupport
- object StringTreeCodec extends MessageCodec[StringTree]