-
-
Notifications
You must be signed in to change notification settings - Fork 47
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: accept multiple arguments as inputs #104
Conversation
Easier to review ignoring whitespace: https://github.com/woodruffw/zizmor/pull/104/files?w=1 |
Accept multiple individual files as inputs. Useful with other mutli-file processing like xargs or other tools, so as to not have to invoke zizmor multiple times, and distinct from operating on an entire directory. Signed-off-by: Mike Fiedler <[email protected]>
6e44597
to
5d91a71
Compare
Prevents an empty `inputs` from being valid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @miketheman!
I thought a bit about this, and I think it might make sense to restrict the inputs slightly (but not as much as they were before). Concretely, instead of My rationale for this is that it'll make config (#12) discover a little easier: with just one directory, there's only one place where the config needs to be discovered. Thoughts @miketheman? |
I thought about this more, and I'm probably overcomplicating it. For now I'll do autodiscovery via |
Accept multiple individual files as inputs.
Useful with other mutli-file processing like xargs or other tools, so as to not have to invoke zizmor multiple times, and distinct from operating on an entire directory.