Created
February 18, 2019 09:17
-
-
Save Ameausoone/0ee3417fbad7d38d736f1ef68bcce54e to your computer and use it in GitHub Desktop.
goal to display help from documentation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
help: ## print this message | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m\t%s\n", $$1, $$2}' | |
example: ## helm after '##' to automatically print help for a goal | |
echo "example" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment