6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-15 00:35:18 +00:00

Split get and list commands into separate binaries

This commit is contained in:
Grzegorz Dlugoszewski
2020-06-12 21:36:31 +02:00
parent c71ebea2d4
commit 5835777850
4 changed files with 125 additions and 66 deletions

View File

@@ -3,6 +3,18 @@ before:
- go mod download
builds:
- id: git-get
main: ./cmd/get/main.go
binary: git-get
ldflags:
- -s -w
- -X git-get/pkg/cfg.version={{.Version}}
- -X git-get/pkg/cfg.commit={{.Commit}}
- -X git-get/pkg/cfg.date={{.Date}}
goos:
- linux
- darwin
- windows
- id: git-list
main: ./cmd/list/main.go
binary: git-list
@@ -19,6 +31,7 @@ builds:
archives:
- id: archive
builds:
- git-get
- git-list
replacements:
darwin: macOS