You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
469 B

9 months ago
  1. # Install/Update to the latest CLI tool.
  2. .PHONY: cli
  3. cli:
  4. @set -e; \
  5. wget -O gf https://github.com/gogf/gf/releases/latest/download/gf_$(shell go env GOOS)_$(shell go env GOARCH) && \
  6. chmod +x gf && \
  7. ./gf install -y && \
  8. rm ./gf
  9. # Check and install CLI tool.
  10. .PHONY: cli.install
  11. cli.install:
  12. @set -e; \
  13. gf -v > /dev/null 2>&1 || if [[ "$?" -ne "0" ]]; then \
  14. echo "GoFame CLI is not installed, start proceeding auto installation..."; \
  15. make cli; \
  16. fi;