Validate
On this page
Using the validate
command, it is possible to validate the local state for consistency and correctness.
____ _
| _ \ ___ _ __ _ __ ___ __ _ _ _ __ _ _ __ __| |
| |_) / _ \ '__| '_ ` _ \ / _` | | | |/ _` | '__/ _` |
| __/ __/ | | | | | | | (_| | |_| | (_| | | | (_| |
|_| \___|_| |_| |_| |_|\__, |\__,_|\__,_|_| \__,_|
|___/
The official Permguard Command Line Interface - Copyright © 2022 Nitro Agility S.r.l.
This command validates the local state for consistency and correctness.
Examples:
# validate the local state for consistency and correctness",
permguard validate
Find more information at: https://www.permguard.com/docs/0.0.x/command-line/how-to-use/
Usage:
permguard validate [flags]
Flags:
-h, --help help for validate
Global Flags:
-o, --output string output format (default "terminal")
-v, --verbose true for verbose output
-w, --workdir string workdir (default ".")
The output from your current version of Permguard may differ from the example provided on this page.
Validate the local state
The permguard validate
command allows you to validate the local state for consistency and correctness.
permguard validate
output:
Your workspace has on error in the following file:
- 'platform/platform-policies.cedar'
1: parser error: parse error at <input>:15:5 "n": exact got whe want ;
Please fix the errors to proceed.
Failed to validate the current workspace.
JSON Output
permguard validate --output json
output:
{
"error_code": "08102",
"error_message": "cli: operation on file failed",
"validation_errors": {
"platform/platform-policies.cedar": {
"1": {
"path": "platform/platform-policies.cedar",
"section": "parser error: parse error at <input>:15:5 \"n\": exact got whe want ;"
}
}
}
}