Refresh
On this page
Using the refresh
command, it is possible to scan source files in the current workspace and synchronize the local state.
____ _
| _ \ ___ _ __ _ __ ___ __ _ _ _ __ _ _ __ __| |
| |_) / _ \ '__| '_ ` _ \ / _` | | | |/ _` | '__/ _` |
| __/ __/ | | | | | | | (_| | |_| | (_| | | | (_| |
|_| \___|_| |_| |_| |_|\__, |\__,_|\__,_|_| \__,_|
|___/
The official Permguard Command Line Interface - Copyright © 2022 Nitro Agility S.r.l.
This command scans source files in the current workspace and synchronizes the local state.
Examples:
# scan source files in the current directory and synchronizes the local state
permguard refresh
Find more information at: https://www.permguard.com/docs/0.0.x/command-line/how-to-use/
Usage:
permguard refresh [flags]
Flags:
-h, --help help for refresh
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.
Refresh the workspace state
The permguard refresh
command allows you to scan source files in the current workspace and synchronize the local state.
permguard refresh
output:
Your workspace has errors.
Please validate and fix the errors to proceed.
Failed to refresh the current workspace.
JSON Output
permguard refresh --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 ;"
}
}
}
}