wvlet.airframe.launcher

Members list

Type members

Classlikes

object ClassOptionSchema extends LogSupport

Attributes

Companion
class
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
class ClassOptionSchema(val surface: Surface, val options: Seq[CLOption], val args: Seq[CLArgItem]) extends OptionSchema

OptionSchema created from a class definition

OptionSchema created from a class definition

Attributes

Companion
object
Supertypes
trait OptionSchema
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
class CommandLauncher(val launcherInfo: LauncherInfo, val optionParser: OptionParser, val subCommands: Seq[CommandLauncher], defaultCommand: Option[LauncherInstance => Any]) extends CommandLauncherBaseCompat, 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

Attributes

Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Interface for printing help messages

Interface for printing help messages

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object HelpMessagePrinter extends LogSupport, AnsiColorPalette

Attributes

Companion
trait
Supertypes
trait AnsiColorPalette
trait AnsiColor
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
object Launcher extends LauncherCompat, LogSupport

Command launcher

Command launcher

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Launcher.type
case class Launcher extends LauncherBaseCompat

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Launcher
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Launcher.type
case class LauncherInfo(name: String, description: String, usage: String, isDefault: Boolean)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class LauncherInstance(launcher: CommandLauncher, instance: Any)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class LauncherResult(launcherStack: List[LauncherInstance], result: Option[Any])

Command execution results

Command execution results

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
class MethodOptionSchema(val method: MethodSurface, val options: Seq[CLOption], val args: Seq[CLArgItem]) extends OptionSchema

OptionSchema created from a method definition

OptionSchema created from a method definition

Attributes

Companion
object
Supertypes
trait OptionSchema
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
object OptionParser extends LogSupport

Creates option parsers

Creates option parsers

Attributes

Companion
class
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
class OptionParser(val schema: OptionSchema) extends LogSupport

CommandTrait-line argument parser

CommandTrait-line argument parser

Attributes

Companion
object
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
sealed trait OptionSchema extends LogSupport

Schema of the command line options

Schema of the command line options

Attributes

Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes
sealed trait StringTree

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.

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object StringTree extends LogSupport

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
StringTree.type
object StringTreeCodec extends MessageCodec[StringTree]

Attributes

Supertypes
trait MessageCodec[StringTree]
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type