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
How I can print something in console as a result? #3
Comments
Hi @bruha the command specified with npx git-pull-run --debug -p 'package-lock.json' -c 'echo "Some packages were changed. You may run npm install to update your dependencies..."' Could you please try that and let me know if it works? Nevertheless, I think what you want to achieve is a valid use case and I will implement a separate flag |
I got:
So yes, it would be great to have a special flag just for console output, thanks in advance @zirkelc ! |
Hi @bruha, I added a flag You can install it with the I may add some coloring to make the message more apparent and I maybe I'll add some formatting options for the message in the future. |
So I updated the hook to and got basically what I need 🎉 git-pull-run Started git-pull-run@1.1.1-next.2 +0ms
git-pull-run Found 1 change for pattern 'package-lock.json' +0ms
git-pull-run Some packages were changed. You may run "npm i" to update your dependencies +1ms
git-pull-run Finished git-pull-run@1.1.1-next.2 +72ms except these annoying |
Yes I agree that it is too verbose by default. I'm currently figuring out something else. I will publish an update the next few days :-) |
@bruha I published an updated version as If a command |
Thank you ❤️ |
I added following post-merge husky hook:
Then run
git reset --hard HEAD~20 && git pull
to test it and got the following:And I just want my text as an output, how can I do so?
The text was updated successfully, but these errors were encountered: