nff: add parsing and CST inspection commands
This commit is contained in:
parent
b9d8cb6d5d
commit
13245c08fe
3 changed files with 161 additions and 5 deletions
19
README.md
19
README.md
|
@ -94,6 +94,25 @@ nff lint config.nft --style-warnings=false --best-practices=false
|
|||
nff lint config.nft --debug
|
||||
```
|
||||
|
||||
### Parsing and CST Inspection
|
||||
|
||||
```bash
|
||||
# Parse and display CST structure for debugging
|
||||
nff parse /etc/nftables.conf
|
||||
|
||||
# Show tree structure with indentation
|
||||
nff parse config.nft --tree
|
||||
|
||||
# Show detailed node information
|
||||
nff parse config.nft --verbose
|
||||
|
||||
# Combined tree and verbose output
|
||||
nff parse config.nft --tree --verbose
|
||||
|
||||
# Debug output with tokens and CST validation
|
||||
nff parse config.nft --debug
|
||||
```
|
||||
|
||||
## Architecture
|
||||
|
||||
### Processing Pipeline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue