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

support for inline command with post_commit_hook #235

Open
trim21 opened this issue May 7, 2024 · 3 comments
Open

support for inline command with post_commit_hook #235

trim21 opened this issue May 7, 2024 · 3 comments

Comments

@trim21
Copy link

trim21 commented May 7, 2024

I'm trying to run a pre-commit hooks with pre-commit run -a to lint files befure commit progress, for example, rewrite file EOL.

but currently it only support a executable file instead of a inline command, so i have to write a seprated files to write this command again.

Hope we could add support for this.

@mbarkhau
Copy link
Owner

Hi @trim21,

I'm not quite sure what the request here is. Can you be more specific about your use-case or the changes that would help you?

@trim21
Copy link
Author

trim21 commented May 17, 2024

currently hooks only support single executable, doesn't support exectable + arguments.

@mbarkhau
Copy link
Owner

Can't you write a bash script?

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