-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ak1ra24
committed
Jan 29, 2020
1 parent
e462651
commit 5a774dd
Showing
15 changed files
with
103 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
VERSION = $$(gobump show -r cmd) | ||
|
||
export GO111MODULE=on | ||
|
||
.PHONY: deps | ||
deps: | ||
go get -u -d | ||
go mod tidy | ||
|
||
.PHONY: devel-deps | ||
devel-deps: | ||
go get -v \ | ||
github.com/x-motemen/gobump/cmd/gobump \ | ||
github.com/Songmu/ghch/cmd/ghch \ | ||
github.com/Songmu/goxz/cmd/goxz \ | ||
github.com/tcnksm/ghr \ | ||
github.com/golangci/golangci-lint/cmd/golangci-lint | ||
|
||
.PHONY: test | ||
test: | ||
go test -v ./... | ||
|
||
.PHONY: lint | ||
lint: devel-deps | ||
golangci-lint run | ||
|
||
.PHONY: build | ||
build: deps | ||
go build -o tn | ||
|
||
.PHONY: install | ||
install: deps | ||
go install | ||
|
||
.PHONY: release | ||
release: devel-deps | ||
echo ghr -n=v$(VERSION) -b="$($GOPATH/bin/ghch -F markdown --latest)" -draft v$(VERSION) ./dist/v$(VERSION) | ||
|
||
.PHONY: crossbuild | ||
crossbuild: devel-deps | ||
goxz -pv=$(VERSION) -os=linux -arch=amd64 -d=./dist/v$(VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
module github.com/tinynetwork/tinet | ||
module github.com/tinynetwork/tn | ||
|
||
go 1.13 | ||
|
||
require ( | ||
github.com/emicklei/dot v0.10.1 | ||
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect | ||
github.com/k0kubun/pp v3.0.1+incompatible | ||
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect | ||
github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381 | ||
github.com/mattn/go-colorable v0.1.4 // indirect | ||
github.com/mattn/go-isatty v0.0.12 // indirect | ||
github.com/pelletier/go-toml v1.6.0 // indirect | ||
github.com/sirupsen/logrus v1.4.2 | ||
github.com/spf13/afero v1.2.2 // indirect | ||
github.com/spf13/cast v1.3.1 // indirect | ||
github.com/spf13/cobra v0.0.5 | ||
github.com/spf13/jwalterweatherman v1.1.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/spf13/viper v1.6.2 | ||
golang.org/x/sys v0.0.0-20200124204421-9fbb57f87de9 // indirect | ||
golang.org/x/text v0.3.2 // indirect | ||
gopkg.in/ini.v1 v1.51.1 // indirect | ||
gopkg.in/yaml.v2 v2.2.8 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters