Hi, I’m trying to run tests on my machine with: `...
# help
a
Hi, I’m trying to run tests on my machine with:
Copy code
docker run -i -t \
    -v /path/to/policy/dir:/policies \
    -v /path/to/test/dir:/tests \
    <http://ghcr.io/cerbos/cerbos:0.20.0|ghcr.io/cerbos/cerbos:0.20.0> compile --tests=/tests /policies
(from the docs, and of course, updated with paths to my policies and tests locally) just an FYI, that the
--format
flag is invalid? getting this error:
Copy code
cerbos: error: unknown flag --format
d
Copy code
docker run -i -t \
    -v /path/to/policy/dir:/policies \
    -v /path/to/test/dir:/tests \
    <http://ghcr.io/cerbos/cerbos:0.20.0|ghcr.io/cerbos/cerbos:0.20.0> compile --tests=/tests /policies
This works for me. What’s the error you’re getting? The
compile
command does not support the
--format
flag, if I understand your question.
a
Ah, okay, that would be it. Thanks!
d
There’s another flag to control the format
Copy code
-o, --output="tree"     Output format (tree,list,json)
a
Great, thank you!