SbtMain

mdoc.SbtMain
object SbtMain extends MainProcess

This main is meant to be called from a running JVM. Rather than exiting with a non-zero code on error, it will throw an exception. This is useful when calling from another JVM and you don't want this JVM to exit and mdoc fails.

This is the case for the sbt integration. When an exception is raised, sbt will make the task as failed but won't exit. This provides a better user experience.

Attributes

Graph
Supertypes
trait MainProcess
class Object
trait Matchable
class Any
Self type
SbtMain.type

Members list

Value members

Concrete methods

def main(args: Array[String]): Unit

Inherited methods

def process(settings: MainSettings): Int

Attributes

Inherited from:
MainProcess
def process(args: Array[String], reporter: Reporter, cwd: Path): Int

Attributes

Inherited from:
MainProcess
def process(args: Array[String], out: PrintStream, cwd: Path): Int

Attributes

Inherited from:
MainProcess