Commands
Attributes
- Source
- Commands.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Commands.type
Members list
Value members
Concrete methods
Attributes
- Source
- Commands.scala
Convert a string and some com.ossuminc.riddl.utils.CommonOptions into either a com.ossuminc.riddl.command.Command or some com.ossuminc.riddl.language.Messages.Messages Note that the com.ossuminc.riddl.command.CommandOptions will be passed to the command when you run it.
Convert a string and some com.ossuminc.riddl.utils.CommonOptions into either a com.ossuminc.riddl.command.Command or some com.ossuminc.riddl.language.Messages.Messages Note that the com.ossuminc.riddl.command.CommandOptions will be passed to the command when you run it.
Value parameters
- name
-
The name of the command to be converted
Attributes
- Returns
- Source
- Commands.scala
Attributes
- Source
- Commands.scala
Attributes
- Source
- Commands.scala
Probably the easiest way to run a command if you're familiar with the command line options and still get the com.ossuminc.riddl.language.Messages.Messages or com.ossuminc.riddl.passes.PassesResult objects out of it.
Probably the easiest way to run a command if you're familiar with the command line options and still get the com.ossuminc.riddl.language.Messages.Messages or com.ossuminc.riddl.passes.PassesResult objects out of it.
Value parameters
- args
-
An Array of arguments, one argument per array element. This should follow the same pattern as by the
riddlc
command line options (runriddlc help
to discover that syntax). Unlikeriddlc
, the first argument must be the name of the command to run. The common options cannot occur ahead of it and are provided by thecommonOptions
argument to this function.
Attributes
- Returns
-
One of two things:
-
scala.util.Left of com.ossuminc.riddl.language.Messages.Messages if the command fails and the contained messages, a List of com.ossuminc.riddl.language.Messages.Messages, that explain the errors
-
scala.util.Right of com.ossuminc.riddl.passes.PassesResult to provide the details of what the com.ossuminc.riddl.passes.Passes that run produced.
-
- Source
- Commands.scala
An easy way to run the from
command which loads commands and their options from a .config
file and uses them as defaults.
An easy way to run the from
command which loads commands and their options from a .config
file and uses them as defaults. The com.ossuminc.riddl.utils.CommonOptions specification in the .config
file can be overridden with the commonOptions
argument.
Value parameters
- commandName
-
The name of the command that is invoking this method, if it matters
- configFile
-
An optional java.nio.file.Path for the config file. Relative or full paths are fine.
- targetCommand
-
The command to run. This must match a config setting in the
configFile
that provides the arguments for that command.
Attributes
- Returns
-
One of two things:
-
scala.util.Left of com.ossuminc.riddl.language.Messages.Messages, which is a list of com.ossuminc.riddl.language.Messages.Message, that explain why it failed.
-
scala.util.Right of com.ossuminc.riddl.passes.PassesResult to provide the details of what the com.ossuminc.riddl.passes.Passes that run produced.
-
- Source
- Commands.scala
Attributes
- Source
- Commands.scala
Attributes
- Source
- Commands.scala