Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⭐️ support formatting multiple policy bundle files #116

Merged
merged 1 commit into from
Oct 16, 2022

Conversation

chris-rock
Copy link
Member

fixes #109

cnspec bundle fmt example-policy.mql.yaml policy/examples/example.mql.yaml
→ format policy bundle(s) file=example-policy.mql.yaml
→ format file filename=example-policy.mql.yaml
→ format policy bundle(s) file=policy/examples/example.mql.yaml
→ format file filename=policy/examples/example.mql.yaml
→ completed formatting policy bundle(s)

I'd also like to mention that you can also pass-in a directory. cnspec bundle fmt will recursively walk the directory and format all .mql.yaml files.

Copy link
Member

@arlimus arlimus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice convenience!

@arlimus arlimus merged commit f71855e into main Oct 16, 2022
@arlimus arlimus deleted the chris-rock/multi-bundle-fmt branch October 16, 2022 23:44
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cnspec bundle format should accept multiple files
2 participants