cqframework / cqf-tooling

Tooling for CQL and IG Authors
Apache License 2.0
19 stars 22 forks source link

Add a CQL export option to the StripGeneratedContent operation #511

Closed JPercival closed 7 months ago

JPercival commented 7 months ago

Description

This PR adds functionality to also export CQL from Libraries when stripping generated content. There's also a fair amount of refactoring and cleanup. If you run the following commands, you can go from a Bundle of content to a set of of minimal resources and exported CQL (IOW, reverse engineer an IG from a Bundle)

tooling-cli -BundleToResources -p=path/to/input/bundle.json -e=json -op=content
tooling-cli -StripGeneratedContent  -ptr=./content -op=./stripped -cql=cql

By creating this PR you acknowledge that your contribution will be licensed under Apache 2.0