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

Exclude based on value #242

Open
akselleirv opened this issue Aug 23, 2022 · 1 comment
Open

Exclude based on value #242

akselleirv opened this issue Aug 23, 2022 · 1 comment

Comments

@akselleirv
Copy link

From my understanding is that --exclude only works for specifing the key name.

Would it be possbile to exclude on the value?

For example:

from.yaml:

some_key:
  clientID: aaa49a1-9162-bbb6-bf06-d7c787ccc

to.yaml

some_key:
  clientID: DRY_RUN

dyff between from.yaml to.yaml --exclude-value DRY_RUN

Should return no differences.

@HeavyWombat
Copy link
Member

Good idea. Thanks for that. I can see that maybe in the redaction feature.

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

No branches or pull requests

2 participants