format justfile
This commit is contained in:
parent
a2f9b69504
commit
3d2c13b588
14
justfile
14
justfile
|
@ -8,28 +8,28 @@ default: run
|
||||||
|
|
||||||
# build binary
|
# build binary
|
||||||
build:
|
build:
|
||||||
go build -o {{output}} {{cmd}}
|
go build -o {{ output }} {{ cmd }}
|
||||||
|
|
||||||
# run from source
|
# run from source
|
||||||
run:
|
run:
|
||||||
go run {{cmd}}
|
go run {{ cmd }}
|
||||||
|
|
||||||
# build 'n run
|
# build 'n run
|
||||||
run-binary: build
|
run-binary: build
|
||||||
exec {{output}}
|
exec {{ output }}
|
||||||
|
|
||||||
# run with args
|
# run with args
|
||||||
run-args args:
|
run-args args:
|
||||||
go run {{cmd}} {{args}}
|
go run {{ cmd }} {{ args }}
|
||||||
|
|
||||||
# install binary into $GOPATH
|
# install binary into $GOPATH
|
||||||
install:
|
install:
|
||||||
go install {{cmd}}
|
go install {{ cmd }}
|
||||||
|
|
||||||
# clean up after yourself
|
# clean up after yourself
|
||||||
clean:
|
clean:
|
||||||
rm {{output}}
|
rm {{ output }}
|
||||||
|
|
||||||
# run go tests
|
# run go tests
|
||||||
test:
|
test:
|
||||||
go test ./...
|
go test ./...
|
||||||
|
|
Loading…
Reference in a new issue