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

Provide a way to obtain package names of loaded policies #239

Merged
merged 1 commit into from
May 18, 2024

Conversation

anakrish
Copy link
Collaborator

Engine::

  • add_policy and add_policy_from_file return the package name.
  • get_packages returns the names of loaded packages.

closes #229

Engine::
- add_policy and add_policy_from_file return the package name.
- get_packages returns the names of loaded packages.

closes microsoft#229

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
@anakrish
Copy link
Collaborator Author

CC @lquerel

@thedavemarshall You'd earlier asked for something like this. Does this help your use case?

@lquerel
Copy link

lquerel commented May 18, 2024

Perfect. Thanks

@thedavemarshall
Copy link
Contributor

@anakrish this is awesome, thank you!

I've prepared some corresponding changes for the ruby bindings - #240

@anakrish anakrish merged commit 56bd884 into microsoft:main May 18, 2024
4 checks passed
@anakrish anakrish deleted the package-name branch May 18, 2024 15:02
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.

Provide a way to get the package name of a loaded rego file
3 participants