Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Feb 8, 2021
2 parents 627c264 + abc681f commit 14e740b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,15 @@
# Changelog

## [0.3.1] (2021-02-03)
## [0.4.0] (2021-02-08)

### New Features

* Support configuration file:
* zkcli will try to read ~/.config/zkcli.conf as default configuration(can be changed with `-config` argument) if the file exists.

### Changes

* No longer output logs from zk library. You can run command with `-v` argument to output logs.

### Internal changes

Expand Down Expand Up @@ -52,3 +61,4 @@ Built: 2018-05-30T13:44:21+0000

[0.2.0]: https://github.com/let-us-go/zkcli/compare/v0.1.0...v0.2.0
[0.3.0]: https://github.com/let-us-go/zkcli/compare/v0.2.0...v0.3.0
[0.4.0]: https://github.com/let-us-go/zkcli/compare/v0.3.0...v0.4.0
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -25,7 +25,7 @@ release:
rm -rf $(DISTDIR)/$(RELDIR)
mkdir -p $(DISTDIR)/$(RELDIR)
go clean
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -ldflags ${LDFLAGS}
GOOS=$(GOOS) GOARCH=$(GOARCH) make build
cp $(PROJECT)$(SUFFIX_EXE) $(DISTDIR)/$(RELDIR)/
tar czf $(DISTDIR)/$(ARCNAME).tar.gz -C $(DISTDIR) $(RELDIR)
go clean
Expand All @@ -34,11 +34,12 @@ release:
release-all:
@$(MAKE) release GOOS=linux GOARCH=amd64
@$(MAKE) release GOOS=linux GOARCH=386
@$(MAKE) release GOOS=linux GOARCH=arm64
@$(MAKE) release GOOS=darwin GOARCH=amd64

.PHONY: build
build:
go build
CGO_ENABLED=0 go build -ldflags ${LDFLAGS}

.PHONY: lint
lint:
Expand Down
2 changes: 1 addition & 1 deletion main.go
Expand Up @@ -15,7 +15,7 @@ import (
var gitCommit = "unknown"
var built = "unknown"

const version = "0.3.1"
const version = "0.4.0"

func main() {
servers := flag.String("s", "127.0.0.1:2181", "Servers")
Expand Down
5 changes: 4 additions & 1 deletion zkcli.conf
@@ -1 +1,4 @@
s 127.0.0.1:2181
s 127.0.0.1:2181
u ''
p ''
v true

0 comments on commit 14e740b

Please sign in to comment.