Usage
vanya check [OPTIONS] [FILES]...
Description
Validates vanya files without generating output. Checks for:
- Syntax errors (parse failures, missing nodes, unexpected node types)
- Scope errors (undefined aliases, undefined variables, name collisions, invalid exports)
- Unknown actions (no matching pattern for action statement)
- Plugin/type errors (missing plugin, unknown type in plugin)
- Nesting errors (invalid block nesting based on plugin type definitions)
Arguments
| Argument | Description |
|---|
[FILES]... | Zero or more .vanya files to check |
Options
| Option | Description |
|---|
--config <CONFIG> | Config file path |
-h, --help | Print help |
Exit codes
| Code | Meaning |
|---|
0 | All files valid |
1 | Validation errors found |
Examples
vanya check tests/*.vanya
# Check with custom config
vanya check --config ./my-config.toml tests/*.vanya