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

feat(lql): add option to generate empty lql file #1335

Merged
merged 4 commits into from
Oct 13, 2023
Merged

feat(lql): add option to generate empty lql file #1335

merged 4 commits into from
Oct 13, 2023

Conversation

emmaisadev
Copy link
Contributor

Summary

Adds a flag when running lacework query run to create an empty file in $EDITOR, rather than using the default template.

This is a useful feature for policy engineering work, as when we have a draft query already created, that we want to quickly test, it allows to just paste into an empty file and run the query.

How did you test this change?

All changes tested locally using the testing procedure defined via the make rules.
Also verified that the resulting lacework binary behaves correctly using the new flag.

Issue

N/A

adds a flag when running `lacework query run` to create an empty file in `$EDITOR`, rather than
using the default template
@emmaisadev emmaisadev requested a review from a team as a code owner July 20, 2023 09:02
this adjusts the formatting to pass the linter
@emmaisadev emmaisadev reopened this Jul 20, 2023
@afiune afiune changed the title feat(lql.go): add option to generate empty lql file feat(lql): add option to generate empty lql file Oct 13, 2023
@afiune afiune merged commit f0ad17a into main Oct 13, 2023
@afiune afiune deleted the feat/emptylql branch October 13, 2023 14:59
@lacework-releng lacework-releng mentioned this pull request Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants