1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Return exit code based on validation result

This commit is contained in:
koplas 2024-12-04 13:53:56 +01:00
parent 57953e495f
commit 938ceb872a
2 changed files with 20 additions and 0 deletions

View file

@ -2,6 +2,13 @@
is a tool to validate local advisories files against the JSON Schema and an optional remote validator.
### Exit codes
If no fatal error occurs the program will exit with the following codes:
- `0`: all valid
- `2⁰`: schema invalid
- `2¹`: no remote validator configured
- `2²`: failure in remote validation
### Usage
```