diff --git a/CHANGELOG.md b/CHANGELOG.md index 260fe48..7c4741f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/README.md b/README.md index c26d4eb..3a557d5 100644 --- a/README.md +++ b/README.md @@ -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" @@ -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**. diff --git a/binq.go b/binq.go index 4b06017..78dea21 100644 --- a/binq.go +++ b/binq.go @@ -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 diff --git a/internal/cli/install.go b/internal/cli/install.go index be1bca3..feb8124 100644 --- a/internal/cli/install.go +++ b/internal/cli/install.go @@ -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: `