Command
The service interface for Riddlc command plugins
Attributes
- Source
- Command.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class InputFileCommandclass PassCommand[OPT]class TranslationCommand[OPT]class PrettifyCommandclass HugoCommandclass StatsCommandclass AboutCommandclass FromCommandclass HelpCommandclass InfoCommandclass InputFileCommandclass DumpCommandclass FlattenCommandclass ParseCommandclass ValidateCommandclass OnChangeCommandclass RepeatCommandclass VersionCommandShow all
Members list
Value members
Abstract methods
Provide a typesafe/Config reader for the commands options.
Provide a typesafe/Config reader for the commands options. This reader should read an object having the same name as the command. The fields of that object must correspond to the fields of the OPT type.
Attributes
- Returns
-
A pureconfig.ConfigReader[OPT] that knows how to read OPT
- Source
- Command.scala
Provide an scopt OParser for the commands options type, OPT
Provide an scopt OParser for the commands options type, OPT
Attributes
- Returns
-
A pair: the OParser and the default values for OPT
- Source
- Command.scala
Concrete methods
Attributes
- Source
- Command.scala
Attributes
- Source
- Command.scala
Attributes
- Source
- Command.scala
Attributes
- Source
- Command.scala
Attributes
- Source
- Command.scala
Attributes
- Source
- Command.scala
Execute the command given the options.
Execute the command given the options. Error should be returned as Left(messages) and not directly logged. The log is for verbose or debug output
Value parameters
- commonOptions
-
The options common to all commands
- log
-
A logger for logging errors, warnings, and info
- options
-
The command specific options
Attributes
- Returns
-
Either a set of Messages on error or a Unit on success
- Source
- Command.scala
Attributes
- Source
- Command.scala