CommandOptions

com.reactific.riddl.commands.CommandOptions
See theCommandOptions companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

final def loadCommonOptions(path: Path): Either[Messages, CommonOptions]
def optional[T](objCur: ConfigObjectCursor, key: String, default: T)(mapIt: ConfigCursor => Result[T]): Result[T]

A helper function for reading optional items from a config file.

A helper function for reading optional items from a config file.

Type parameters

T

The Scala type of the config item's value

Value parameters

default

The default value of the config item

key

The name of the optional config item

mapIt

The function to map ConfigCursor to ConfigReader.Result[T]

objCur

The ConfigObjectCursor to start with

Attributes

Returns

The reader for this optional configuration item.

def withInputFile[S](inputFile: Option[Path], commandName: String)(f: Path => Either[Messages, S]): Either[Messages, S]

Concrete fields

Implicits

Implicits

implicit val commonOptionsReader: ConfigReader[CommonOptions]