CommandLauncher

wvlet.airframe.launcher.CommandLauncher
class CommandLauncher(val launcherInfo: LauncherInfo, val optionParser: OptionParser, val subCommands: Seq[CommandLauncher], defaultCommand: Option[LauncherInstance => Any]) extends CommandLauncherBaseCompat with LogSupport

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

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def description: String
def name: String
def usage: String

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods