forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format: Output list and diff changes with --fail flag (open-policy-ag…
…ent#4508) The change enables using --diff and --list together with --fail as discussed in open-policy-agent#4508, for example: $ opa fmt [path [...]] --list --fail; exit $? path/to/file-1.rego path/to/file-2.rego unexpected diff 2 Previously, the same command returned only the error: $ opa fmt [path [...]] --list --fail; exit $? unexpected diff 2 Signed-off-by: David Kuridža <david@kuridza.si>
- Loading branch information
1 parent
51e1a9a
commit 1f7af74
Showing
2 changed files
with
122 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters