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(exec) Filter by tags in exec cmd #344

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

majki741
Copy link

Issue #, if available:

Description of changes:

Reuse of the FilterByTags method and adding the ability to filter by tags, not just a single tag, when using the 'exec' command.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@RamiAwar
Copy link
Collaborator

Looks good! Can you also add tests for this? I'm trying not to merge anything new without tests, and sometimes it's hard cause no foundation exists. Let me know if I can help you out with this if it's too much!

@majki741
Copy link
Author

majki741 commented Mar 1, 2025

the test for this function is already here: https://github.com/knqyf263/pet/blame/main/snippet/snippet_test.go#L307

@RamiAwar
Copy link
Collaborator

RamiAwar commented Mar 6, 2025

Looked into this a bit more, and I want to e2e test the filtering functionality not just this one function, but it's taking some time.

I think it's a slightly big refactor so not going to lay it on you 😄

My goal from adding these additional tests is just making sure the old functionality doesn't change with this change, but in an automated way. Sorry to keep you waiting! Will merge this soon.

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy