Skip to content

Commit

Permalink
use cli [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
cxjava committed Oct 23, 2019
1 parent 823c196 commit 2c3308c
Show file tree
Hide file tree
Showing 9 changed files with 134 additions and 299 deletions.
13 changes: 6 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ project_name: AriaNg-go

env:
- GO111MODULE=on
- REPO=github.com/cxjava/AriaNg-go

before:
hooks:
Expand All @@ -16,12 +15,12 @@ builds:
- CGO_ENABLED=0
ldflags:
- "-s -w"
- -X "{{.Env.REPO}}/cmd.Version={{.Version}}"
- -X "{{.Env.REPO}}/cmd.Commit={{.FullCommit}}"
- -X "{{.Env.REPO}}/cmd.RepoUrl={{.GitURL}}"
- -X "{{.Env.REPO}}/cmd.BuildDate={{.Date}}"
- -X "{{.Env.REPO}}/cmd.BuiltWithGoVersion={{.Env.GO_VERSION}}"
- -X "{{.Env.REPO}}/cmd.BuiltBy={{.Env.BUILT_BY}}"
- -X "main.Version={{.Version}}"
- -X "main.Commit={{.FullCommit}}"
- -X "main.RepoUrl={{.GitURL}}"
- -X "main.BuildDate={{.Date}}"
- -X "main.BuiltWithGoVersion={{.Env.GO_VERSION}}"
- -X "main.BuiltBy={{.Env.BUILT_BY}}"
flags:
- -tags=release
goos:
Expand Down
69 changes: 0 additions & 69 deletions cmd/root.go

This file was deleted.

33 changes: 0 additions & 33 deletions cmd/server.go

This file was deleted.

36 changes: 0 additions & 36 deletions cmd/version.go

This file was deleted.

9 changes: 2 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ module github.com/cxjava/AriaNg-go
go 1.13

require (
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v0.0.5
github.com/spf13/viper v1.4.0
github.com/stretchr/testify v1.4.0 // indirect
github.com/UnnoTed/fileb0x v1.1.4 // indirect
github.com/urfave/cli v1.22.1
golang.org/x/net v0.0.0-20191021144547-ec77196f6094
golang.org/x/sys v0.0.0-20191020212454-3e7259c5e7c2 // indirect
golang.org/x/text v0.3.2 // indirect
gopkg.in/yaml.v2 v2.2.4 // indirect
)
Loading

0 comments on commit 2c3308c

Please sign in to comment.