Class/Object

xerial.lens.cui

Launcher

Related Docs: object Launcher | package cui

Permalink

class Launcher extends Logger

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
Linear Supertypes
Logger, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Launcher
  2. Logger
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Launcher(cl: Class[_])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def debug(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def error(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  10. def execute[A <: AnyRef](args: Array[String], showHelp: Boolean = false): A

    Permalink
  11. def execute[A <: AnyRef](argLine: String): A

    Permalink
  12. def fatal(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getLogger(tag: String): LogWriter

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  16. def getLogger(tag: Symbol): LogWriter

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def info(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def log[U](tag: String)(f: (LogWriter) ⇒ U): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  21. def log(logLevel: LogLevel, message: ⇒ Any): Unit

    Permalink
    Definition Classes
    Logger
  22. def moduleList[A <: AnyRef](mainObj: A): Seq[Command]

    Permalink
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def printHelp(p: OptionParser, obj: AnyRef): Unit

    Permalink
  27. def printHelp: Unit

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def trace(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def warn(message: ⇒ Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logger

Inherited from Logger

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped