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(dre): filtering of registry #959

Merged
merged 6 commits into from
Sep 24, 2024
Merged

feat(dre): filtering of registry #959

merged 6 commits into from
Sep 24, 2024

Conversation

NikolaMilosa
Copy link
Contributor

@NikolaMilosa NikolaMilosa commented Sep 24, 2024

With this PR we add the ability to do some filtering on the registry output.
Example:

./target/debug/dre --offline registry -f subnet_type=system

This will return all the objects that contain a json structure

{
  ...
  "subnet_type": "system",
  ...
}

It is possible to chain multiple filters and the tool will only pick objects which have all filter satisfied

These objects can be nested as well in what case the output will contain all of the higher level objects values.

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner September 24, 2024 09:35
@NikolaMilosa NikolaMilosa enabled auto-merge (squash) September 24, 2024 13:16
@NikolaMilosa NikolaMilosa merged commit 7db1938 into main Sep 24, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-filtering-registry branch September 24, 2024 13:24
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