Skip to content

Commit 192e81c

Browse files
committed
fix(url): add cli version to url
1 parent 48f4ed8 commit 192e81c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
The recommended way to install `ots` on macOS is via Homebrew.
2828

2929
```sh
30-
brew install sniptt-official/ots/ots
30+
brew tap sniptt-official/tap
31+
brew install ots
3132
```
3233

3334
*NOTE: We need 30 forks, 30 watchers, and 75 stars to make it to Homebrew/core. Please help us get there 👀!*
@@ -79,7 +80,7 @@ It goes without saying that URL-accessible one-time secrets should be shared wit
7980

8081
### Can I persist my secrets for later use?
8182

82-
Please use the [snip-cli](https://github.com/sniptt-official/snip-cli) instead.
83+
Please use [snip](https://github.com/sniptt-official/snip) instead.
8384

8485
## License
8586

cmd/new.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import (
2525
"time"
2626

2727
"github.com/sniptt-official/ots/api/client"
28+
"github.com/sniptt-official/ots/build"
2829
"github.com/sniptt-official/ots/crypto/encrypt"
2930
"github.com/spf13/cobra"
3031
"golang.org/x/term"
@@ -79,6 +80,7 @@ from the server upon retrieval therefore can only be viewed once.
7980

8081
q := ots.ViewURL.Query()
8182
q.Set("ref", "cli")
83+
q.Set("v", build.Version)
8284
ots.ViewURL.RawQuery = q.Encode()
8385
ots.ViewURL.Fragment = base64.URLEncoding.EncodeToString(key)
8486

docs/manual-install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
See available binaries on the [releases page](https://github.com/sniptt-official/ots/releases).
66

77
```sh
8-
$ curl -L https://github.com/sniptt-official/ots/releases/download/v0.0.7/ots_0.0.7_darwin_amd64.tar.gz -o ots.tar.gz
8+
$ curl -L https://github.com/sniptt-official/ots/releases/download/v0.0.8/ots_0.0.8_darwin_amd64.tar.gz -o ots.tar.gz
99
$ sudo mkdir -p /usr/local/ots-cli
1010
$ sudo tar -C /usr/local/ots-cli -xvf ots.tar.gz
1111
$ sudo ln -sf /usr/local/ots-cli/ots /usr/local/bin/ots
@@ -16,7 +16,7 @@ Assuming `/usr/local/bin` is on your `PATH`, you can now run:
1616

1717
```sh
1818
$ ots --version
19-
ots version 0.0.7
19+
ots version 0.0.8
2020
```
2121

2222
### Uninstall

0 commit comments

Comments
 (0)