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: add ability to specify job names to run command #904

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrexox
Copy link
Member

@mrexox mrexox commented Dec 21, 2024

Idea from discussion of #846

⚡ Summary

  • Add lefthook run <hook> --jobs job1 job2
  • Add tests

@scop
Copy link
Contributor

scop commented Dec 22, 2024

From #846 (comment)_

But if you have jobs with the same name – all of them will be run. Do you find this useful?

Yeah, I think that would be fine. And also as mentioned in #846, it would be great if one could also run (only) groups by their name.

I'm also wondering if all those three (commands, jobs, and groups) could be merged into one option, let's say --only THING would run only all commands, jobs, and groups named THING. Not sure for example if commands and jobs can coexist, or if there's much use for three separate options for these as they're kind of mutually exclusive anyway (unless e.g. --commands FOO --jobs BAR would run commands FOO and jobs BAR. Anyway mostly jut thinking aloud, not refined ideas in any way.

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