plexsystems/konstraint

Possible to have constraint and constraint templates created in different directory?

Jaja0624 opened this issue · 3 comments

Possible to have constraint and constraint templates created in different directory?

Hi @Jaja0624 . This isn't currently possible, but you can use the --output flag to write the Constraints and ConstraintTemplates 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?

Yes that works. Thanks :)

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