Usage
vanya fmt [OPTIONS] <FILES>...
Description
Formats vanya files with consistent style:
- Consistent indentation (4 spaces)
- Single space after keywords
- Trailing newline
- No trailing whitespace
Arguments
| Argument | Description |
|---|
<FILES> | One or more .vanya files to format |
Options
| Option | Description |
|---|
--check | Check if files are formatted, don’t modify |
Exit codes
| Code | Meaning |
|---|
0 | Success (or files already formatted in check mode) |
1 | Files would be reformatted (check mode only) |
Examples
# Check formatting without modifying
vanya fmt --check tests/*.vanya