Skip to content

Instantly share code, notes, and snippets.

@Ameausoone
Created February 18, 2019 09:17
Show Gist options
  • Save Ameausoone/0ee3417fbad7d38d736f1ef68bcce54e to your computer and use it in GitHub Desktop.
Save Ameausoone/0ee3417fbad7d38d736f1ef68bcce54e to your computer and use it in GitHub Desktop.
goal to display help from documentation
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