p

mainargs

package mainargs

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. class ArgSig extends Product with Serializable with Equals

    Models what is known by the router about a single argument: that it has a longName, a human-readable typeString describing what the type is (just for logging and reading, not a replacement for a TypeTag) and possible a function that can compute its default value

  2. case class Flag(value: Boolean = false) extends Product with Serializable
  3. case class Leftover[T](value: T*) extends Product with Serializable
  4. class Macros extends AnyRef

    More or less a minimal version of Autowire's Server that lets you generate a set of "routes" from the methods defined in an object, and call them using passing in name/args/kwargs via Java reflection, without having to generate/compile code or use Scala reflection.

    More or less a minimal version of Autowire's Server that lets you generate a set of "routes" from the methods defined in an object, and call them using passing in name/args/kwargs via Java reflection, without having to generate/compile code or use Scala reflection. This saves us spinning up the Scala compiler and greatly reduces the startup time of cached scripts.

  5. class MainData[T, B] extends Product with Serializable with Equals

    What is known about a single endpoint for our routes.

    What is known about a single endpoint for our routes. It has a name, flattenedArgSigs for each argument, and a macro-generated invoke0 that performs all the necessary argument parsing and de-serialization.

    Realistically, you will probably spend most of your time calling Invoker.invoke instead, which provides a nicer API to call it that mimmicks the API of calling a Scala method.

  6. case class MethodMains[B](value: Seq[MainData[Any, B]], base: () ⇒ B) extends Product with Serializable
  7. sealed trait ParamResult[+T] extends AnyRef
  8. class ParserForClass[T] extends Class[T]
  9. class ParserForMethods[B] extends AnyRef
  10. sealed trait Result[+T] extends AnyRef

    Represents what comes out of an attempt to invoke an Main.

    Represents what comes out of an attempt to invoke an Main. Could succeed with a value, but could fail in many different ways.

  11. case class TokenGrouping[B](remaining: List[String], grouped: Map[ArgSig, Seq[String]]) extends Product with Serializable
  12. sealed trait TokensReader[T] extends AnyRef

    Represents the ability to parse CLI input arguments into a type T

    Represents the ability to parse CLI input arguments into a type T

    Has a fixed number of direct subtypes - Simple, Constant, Flag, Leftover, and Class - but each of those can be extended by an arbitrary number of user-specified instances.

  13. class arg extends Annotation with ClassfileAnnotation
  14. class main extends Annotation with ClassfileAnnotation

Value Members

  1. object ArgSig extends Serializable
  2. object Compat
  3. object Invoker
  4. object MainData extends Serializable
  5. object ParamResult
  6. object ParserForClass extends ParserForClassCompanionVersionSpecific
  7. object ParserForMethods extends ParserForMethodsCompanionVersionSpecific
  8. object Renderer
  9. object Result
  10. object TokenGrouping extends Serializable
  11. object TokensReader
  12. object Util

Ungrouped