mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
Change the validate command to test.
This commit is contained in:
parent
ae419ea3e7
commit
4795945caf
11
README.md
11
README.md
@ -42,7 +42,7 @@ SUBCOMMANDS:
|
|||||||
build Build a specific ucg file.
|
build Build a specific ucg file.
|
||||||
help Prints this message or the help of the given subcommand(s)
|
help Prints this message or the help of the given subcommand(s)
|
||||||
inspect Inspect a specific symbol in a ucg file.
|
inspect Inspect a specific symbol in a ucg file.
|
||||||
validate Check a specific ucg file for errors.
|
test Check a specific ucg file for errors.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Compiling
|
## Compiling
|
||||||
@ -62,12 +62,12 @@ ARGS:
|
|||||||
<INPUT>... Input ucg files or directories to build. If not provided then build the contents of the current directory.
|
<INPUT>... Input ucg files or directories to build. If not provided then build the contents of the current directory.
|
||||||
```
|
```
|
||||||
|
|
||||||
## Validating
|
## Testing
|
||||||
```sh
|
```sh
|
||||||
Check a list of ucg files for errors and run assertions.
|
CCheck a list of ucg files for errors and run test assertions.
|
||||||
|
|
||||||
USAGE:
|
USAGE:
|
||||||
ucg validate [FLAGS] -r [INPUT]...
|
ucg test [FLAGS] -r [INPUT]...
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
-h, --help Prints help information
|
-h, --help Prints help information
|
||||||
@ -75,8 +75,7 @@ FLAGS:
|
|||||||
-V, --version Prints version information
|
-V, --version Prints version information
|
||||||
|
|
||||||
ARGS:
|
ARGS:
|
||||||
<INPUT>... Input ucg files or directories to validate. If not provided scan the directory for files with _test.ucg
|
<INPUT>... Input ucg files or directories to run test assertions for. If not provided it will scan the current directory for files with _test.ucg
|
||||||
```
|
|
||||||
|
|
||||||
## Language Reference
|
## Language Reference
|
||||||
|
|
||||||
|
@ -47,10 +47,10 @@ fn do_flags<'a>() -> clap::ArgMatches<'a> {
|
|||||||
(@arg recurse: -r +required conflicts_with[INPUT] "Whether we should recurse in directories or not.")
|
(@arg recurse: -r +required conflicts_with[INPUT] "Whether we should recurse in directories or not.")
|
||||||
(@arg INPUT: ... "Input ucg files or directories to build. If not provided then build the contents of the current directory.")
|
(@arg INPUT: ... "Input ucg files or directories to build. If not provided then build the contents of the current directory.")
|
||||||
)
|
)
|
||||||
(@subcommand validate =>
|
(@subcommand test =>
|
||||||
(about: "Check a list of ucg files for errors and run assertions.")
|
(about: "Check a list of ucg files for errors and run test assertions.")
|
||||||
(@arg recurse: -r +required conflicts_with[INPUT] "Whether we should recurse or not.")
|
(@arg recurse: -r +required conflicts_with[INPUT] "Whether we should recurse or not.")
|
||||||
(@arg INPUT: ... "Input ucg files or directories to validate. If not provided it will scan the directories for files with _test.ucg")
|
(@arg INPUT: ... "Input ucg files or directories to run test assertions for. If not provided it will scan the current directory for files with _test.ucg")
|
||||||
)
|
)
|
||||||
(@subcommand converters =>
|
(@subcommand converters =>
|
||||||
(about: "list the available converters")
|
(about: "list the available converters")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user