summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6eb1ec31..701b2422 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ setup:
mise install
mise exec go -- go install github.com/xlgmokha/minit@latest
mise exec rust -- rustup component add clippy rustfmt
+ mise exec rust -- cargo install --locked cedar-policy-cli
# Cargo targets
build:
@@ -29,9 +30,12 @@ clean:
fmt:
@cargo fmt
+ @cedar format --policies etc/authzd/policy0.cedar --write
lint:
@cargo clippy
+ @cedar check-parse --policies etc/authzd/policy0.cedar
+ @cedar format --policies etc/authzd/policy0.cedar --check
doc:
@cargo doc --open