mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-21 18:10:42 -04:00
DOCS: Add info to the readme about the repl.
This commit is contained in:
parent
745b4cc8d9
commit
f81eb95e9a
14
README.md
14
README.md
@ -47,6 +47,7 @@ SUBCOMMANDS:
|
||||
fmt Format ucg files automatically.
|
||||
help Prints this message or the help of the given subcommand(s)
|
||||
importers list the available importers for includes
|
||||
repl Start the ucg repl for interactive evaluation.
|
||||
test Check a list of ucg files for errors and run test assertions.
|
||||
```
|
||||
|
||||
@ -67,6 +68,19 @@ ARGS:
|
||||
<INPUT>... Input ucg files or directories to build. If not provided then build the contents of the current directory.
|
||||
```
|
||||
|
||||
## Run the repl
|
||||
|
||||
```sh
|
||||
$> ucg repl
|
||||
ucg> 1 + 1;
|
||||
2
|
||||
ucg> {foo = 1 + 1};
|
||||
{
|
||||
foo = 2,
|
||||
}
|
||||
ucg>
|
||||
```
|
||||
|
||||
## Testing
|
||||
```sh
|
||||
Check a list of ucg files for errors and run test assertions.
|
||||
|
Loading…
x
Reference in New Issue
Block a user