Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
progrhyme committed Jul 15, 2020
1 parent 063c3ec commit be9f865
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## 0.7.1 (2020-07-15)

Feature / Change: ([#10](https://github.com/binqry/binq/pull/10))

- - (client, CLI/install) Set default index server to https://binqry.github.io/index/

Bug Fix: ([#10](https://github.com/binqry/binq/pull/10))

- (CLI/modify) Can't move file to new path when directory doesn't exist

## 0.7.0 (2020-07-13)

Change:
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Typical commands to achieve this are following:

```sh
bin=/usr/local/bin # Change to your favorite path
version=0.7.0 # Make sure this is the latest
version=0.7.1 # Make sure this is the latest
os=darwin # or "linux" is supported
tmpfile=$(mktemp)
curl -Lo $tmpfile "https://github.com/binqry/binq/releases/download/v${version}/binq_${version}_${os}_amd64.zip"
Expand Down Expand Up @@ -94,11 +94,14 @@ binq https://github.com/peco/peco/releases/download/v0.5.7/peco_darwin_amd64.zip
binq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
-d path/to/bin -f jq

# With Index Server
binq -s https://binqry.github.io/index/ mdbook -d path/to/bin
export BINQ_SERVER=https://binqry.github.io/index/
# With Index Server which defaults to https://binqry.github.io/index/
binq mdbook -d path/to/bin
export BINQ_BIN_DIR=path/to/bin
binq jq@1.6
## Specify server address
binq -s https://your-index-server/ mdbook@0.4.1
export BINQ_SERVER="https://your-index-server/"
binq jq
```

[Index Server](#binq-index-server) serves meta data of downloadable items by **binq**.
Expand Down
2 changes: 1 addition & 1 deletion binq.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package binq

const (
Version = "0.7.0"
Version = "0.7.1"
DefaultBinqServer = "https://binqry.github.io/index/"
EnvKeyServer = "BINQ_SERVER" // URL of Index Server for install operation
EnvKeyBinDir = "BINQ_BIN_DIR" // Default location to download items
Expand Down
13 changes: 9 additions & 4 deletions internal/cli/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,15 @@ Examples:
{{.prog}} {{.name}} -t https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 \
-d path/to/bin -f jq
# With index server
{{.prog}} {{.name}} -s https://binqry.github.io/index peco -d path/to/bin
export BINQ_SERVER=https://binqry.github.io/index
{{.prog}} jq@1.6 -d path/to/bin -f jq
# With index server which defaults to https://binqry.github.io/index/
{{.prog}} {{.name}} peco -d path/to/bin
export BINQ_BIN_DIR=path/to/bin
{{.prog}} jq@1.6
# Specify index server
binq -s https://your-index-server/ peco@0.5.7
export BINQ_SERVER="https://your-index-server/"
binq jq
Options:
`
Expand Down

0 comments on commit be9f865

Please sign in to comment.