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

Allow "quiet" recipes prefixed with "@" #65

Closed
casey opened this issue Nov 12, 2016 · 0 comments
Closed

Allow "quiet" recipes prefixed with "@" #65

casey opened this issue Nov 12, 2016 · 0 comments

Comments

@casey
Copy link
Owner

casey commented Nov 12, 2016

Noticed this in the clap-rs justfile:

update-contributors:
	@echo 'Removing old CONTRIBUTORS.md'
	@mv CONTRIBUTORS.md CONTRIBUTORS.md.bak
	@echo 'Downloading a list of new contributors'
	@echo "The following is a list of contributors in alphabetical order:" > CONTRIBUTORS.md
	@echo "" >> CONTRIBUTORS.md
	@echo "" >> CONTRIBUTORS.md
	@githubcontrib --owner kbknapp --repo clap-rs --sha master --cols 6 --format md --showlogin true --sortBy login >> CONTRIBUTORS.md
	@rm CONTRIBUTORS.md.bak

I've done the same thing myself a few times, so it might be nice to mark a recipe as quiet, and then flip the meaning of "@" in that recipe:

@update-contributors:
	echo 'Removing old CONTRIBUTORS.md'
	mv CONTRIBUTORS.md CONTRIBUTORS.md.bak
	echo 'Downloading a list of new contributors'
	echo "The following is a list of contributors in alphabetical order:" > CONTRIBUTORS.md
	echo "" >> CONTRIBUTORS.md
	echo "" >> CONTRIBUTORS.md
	githubcontrib --owner kbknapp --repo clap-rs --sha master --cols 6 --format md --showlogin true --sortBy login >> CONTRIBUTORS.md
	rm CONTRIBUTORS.md.bak

Not sure if this is a good idea or not. It's not hard to prefix all lines of a recipe with "@".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant