Initial commit
This commit is contained in:
17
justfile
Executable file
17
justfile
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/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 {} \;
|
||||
Reference in New Issue
Block a user