#!/usr/bin/env just --justfile go-mod := `go list` flags := '-ldflags="-s -w"' install: go install {{flags}} build: @echo -n "Building app ... " @go build {{flags}} -o bin/ && echo "OK" || echo "FAILED" update: go get -u go mod tidy -v rename new-go-mod: @find . -type f -not -path './.git/*' -exec sed -i '' -e "s|{{go-mod}}|{{new-go-mod}}|g" >/dev/null 2>&1 {} \;