Possible to have constraint and constraint templates created in different directory?
Jaja0624 opened this issue · 3 comments
Jaja0624 commented
Possible to have constraint and constraint templates created in different directory?
jalseth commented
Hi @Jaja0624 . This isn't currently possible, but you can use the --output
flag to write the Constraint
s and ConstraintTemplate
s to a specific directory, and then you can have a script move the template_*.yaml
and constraint_*.yaml
files to other locations of your choosing. Will that work for your use case?
Jaja0624 commented
Yes that works. Thanks :)
poblahblahblah commented
We've just created a Makefile so we don't have to memorize the command:
.PHONY: docs
docs: # Create the docs correctly
konstraint doc --no-rego --output README.md
execution:
make docs