🚀 Add install-cool-down build target
cool-down seems stable now
This commit is contained in:
parent
fd68ffbbf8
commit
f41ac8575f
1 changed files with 22 additions and 0 deletions
22
Taskfile.yml
22
Taskfile.yml
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
version: '3'
|
||||
|
||||
vars:
|
||||
GOBIN_ENV:
|
||||
sh: go env GOBIN
|
||||
GOPATH_ENV:
|
||||
sh: go env GOPATH
|
||||
BIN: '{{if .GOBIN_ENV}}{{.GOBIN_ENV}}{{else}}{{.GOPATH_ENV}}/bin{{end}}'
|
||||
|
||||
tasks:
|
||||
default:
|
||||
desc: fmt, vet, and build
|
||||
|
|
@ -82,3 +89,18 @@ tasks:
|
|||
- task: cmd-build
|
||||
vars:
|
||||
CMD: "*"
|
||||
|
||||
install-cool-down:
|
||||
desc: Installs the cool-down command
|
||||
source:
|
||||
- cmd/cool-down/**/*.go
|
||||
- chill/*.go
|
||||
- cli/context/*.go
|
||||
- cli/err/*.go
|
||||
- cli/spin/*.go
|
||||
- go.mod
|
||||
- go.sum
|
||||
generates:
|
||||
- '{{.BIN}}/cool-down'
|
||||
cmds:
|
||||
- go install ./cmd/cool-down
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue