Skip to content

Commit

Permalink
Bump version, add guide for installation, add build for arm linucx
Browse files Browse the repository at this point in the history
  • Loading branch information
ksysoev committed Nov 5, 2023
1 parent a74ddac commit 0ab3e37
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ jobs:
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildmode=exe -o ./wsget ./cmd/wsget
- name: Compress Linux
run: tar -czvf ./wsget-linux-amd64.tar.gz ./wsget ./LICENSE ./README.md
- name: Build Linux(ARM)
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -buildmode=exe -o ./wsget ./cmd/wsget
- name: Compress Linux(ARM)
run: tar -czvf ./wsget-linux-arm64.tar.gz ./wsget ./LICENSE ./README.md
- name: Build MacOS (Intel)
run: CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -buildmode=exe -o ./wsget ./cmd/wsget
- name: Compress MacOS (Intel)
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ wsget is a command-line tool for interacting with a WebSocket server. It support

## Installation

To install wsget, you can use `go install`:
### Downloading binaries:

Compilied executables can be downloaded from [here](https://github.com/ksysoev/wsget/releases).

### Install from source code:

```
go install github.com/ksysoev/wsget/cmd/wsget@latest
```

### Install with homebrew:

```
brew tap ksysoev/wsget
brew install wsget
```

## Usage

To use wsget, you need to specify the WebSocket URL:
Expand Down
2 changes: 1 addition & 1 deletion cmd/wsget/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func main() {
Example: `wsget wss://ws.postman-echo.com/raw -r "Hello, world!"`,
Args: cobra.ExactArgs(1),
ArgAliases: []string{"url"},
Version: "0.2.0",
Version: "0.2.1",
Run: run,
}

Expand Down

0 comments on commit 0ab3e37

Please sign in to comment.