CommandOptions

com.ossuminc.riddl.command.CommandOptions
See theCommandOptions companion trait

Attributes

Companion
trait
Source
CommandOptions.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

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.

Source
CommandOptions.scala

Attributes

Source
CommandOptions.scala

Concrete fields

Attributes

Source
CommandOptions.scala