Skip to content

Validate Dialect definitions.

Usage

rootform validate dialects [directory] [options]
SHELL

Options

FlagTypeDefaultDescription
--formatstring""output format: text|json; default: text

Global options

FlagTypeDefaultDescription
-h, --helpboolfalseshow how to use rootform validate dialects
--colormodeautocolor human output: auto|always|never; default: auto
--no-pagerboolfalseprint a long report in full instead of opening it in less

Behavior

Compile and validate each Dialect of a directory, including its Concepts, Rules, and references.

Without a directory, validation reads the current directory. The text or JSON result goes to standard output. Diagnostics go to standard error.

Exit status

StatusDescription
0every Dialect is valid
1at least one Dialect is not valid
2the command was used incorrectly
3no Dialects were found
4a source could not be read or the report could not be written

Examples

rootform validate dialects
rootform validate dialects ./dialects
rootform validate dialects ./dialects --format json
Shell