From 475da4308496628af2ffab07b2b790620743fd39 Mon Sep 17 00:00:00 2001 From: lleadbet Date: Wed, 17 Mar 2021 17:08:10 -0700 Subject: [PATCH 1/2] bumping version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a39502a3..49c6f799 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -version = "0.5.0" +version = "0.6.0" release: docker build . -t twitch-cli:latest From 5d8c5fdbb1317989b3cebc4ce8dd82db97a63e25 Mon Sep 17 00:00:00 2001 From: lleadbet Date: Thu, 18 Mar 2021 14:06:46 -0700 Subject: [PATCH 2/2] prep for release --- Makefile | 6 +-- README.md | 4 +- docs/event.md | 91 ++++++++++++++++++++----------------- internal/models/streamup.go | 26 +++++------ 4 files changed, 66 insertions(+), 61 deletions(-) diff --git a/Makefile b/Makefile index 49c6f799..8d352a9f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -version = "0.6.0" - release: docker build . -t twitch-cli:latest docker run --rm --privileged \ @@ -10,7 +8,7 @@ release: twitch-cli:latest --rm-dist build: - go build --ldflags "-X main.buildVersion=${version}" + go build --ldflags "-X main.buildVersion=source" build_all: - xgo -out build/twitch --targets "darwin/amd64,windows/amd64,linux/amd64" --ldflags "-X main.buildVersion=$(version)" ./ \ No newline at end of file + xgo -out build/twitch --targets "darwin/amd64,windows/amd64,linux/amd64" --ldflags "-X main.buildVersion=source" ./ \ No newline at end of file diff --git a/README.md b/README.md index 293284b8..b5c25ed3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Twitch CLI (Open Beta Version) +# Twitch CLI -- [Twitch CLI (Open Beta Version)](#twitch-cli-open-beta-version) +- [Twitch CLI](#twitch-cli) - [Download](#download) - [Homebrew](#homebrew) - [Scoop](#scoop) diff --git a/docs/event.md b/docs/event.md index 3cd44eab..58ac4b06 100644 --- a/docs/event.md +++ b/docs/event.md @@ -16,27 +16,31 @@ Used to either create or send mock events for use with local webhooks testing. **Args** -| Argument | Description | -|---------------------|------------------------------------------------------------------------------------------------------------| -| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. | -| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. | -| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. | -| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. | -| `transaction` | Bits in Extensions transactions events. | -| `add-reward` | Channel Points EventSub event for a Custom Reward being added. | -| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. | -| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. | -| `add-redemption` | Channel Points EventSub event for a redemption being performed. | -| `update-redemption` | Channel Points EventSub event for a redemption being updated. | -| `raid` | Channel Raid event with a random viewer count. | -| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. | -| `stream-change` | Stream Changed event. | -| `streamup` | Stream online event. | -| `streamdown` | Sstream offline event. | -| `add-moderator` | Channel moderator add event. | -| `remove-moderator` | Channel moderator removal event. | -| `ban` | Channel ban event. | -| `unban` | Channel unban event. | +| Argument | Description | +|-----------------------|------------------------------------------------------------------------------------------------------------| +| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. | +| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. | +| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. | +| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. | +| `transaction` | Bits in Extensions transactions events. | +| `add-reward` | Channel Points EventSub event for a Custom Reward being added. | +| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. | +| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. | +| `add-redemption` | Channel Points EventSub event for a redemption being performed. | +| `update-redemption` | Channel Points EventSub event for a redemption being updated. | +| `raid` | Channel Raid event with a random viewer count. | +| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. | +| `stream-change` | Stream Changed event. | +| `streamup` | Stream online event. | +| `streamdown` | Sstream offline event. | +| `add-moderator` | Channel moderator add event. | +| `remove-moderator` | Channel moderator removal event. | +| `ban` | Channel ban event. | +| `unban` | Channel unban event. | +| `hype-train-begin` | Channel hype train start event. | +| `hype-train-progress` | Channel hype train progress event. | +| `hype-train-end` | Channel hype train end event. | + **Flags** @@ -104,27 +108,30 @@ Allows you to test if your webserver responds to subscription requests properly. **Args** -| Argument | Description | -|---------------------|------------------------------------------------------------------------------------------------------------| -| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. | -| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. | -| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. | -| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. | -| `transaction` | Bits in Extensions transactions events. | -| `add-reward` | Channel Points EventSub event for a Custom Reward being added. | -| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. | -| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. | -| `add-redemption` | Channel Points EventSub event for a redemption being performed. | -| `update-redemption` | Channel Points EventSub event for a redemption being updated. | -| `raid` | Channel Raid event with a random viewer count. | -| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. | -| `stream-change` | Stream Changed event. | -| `streamup` | Stream online event. | -| `streamdown` | Sstream offline event. | -| `add-moderator` | Channel moderator add event. | -| `remove-moderator` | Channel moderator removal event. | -| `ban` | Channel ban event. | -| `unban` | Channel unban event. | +| Argument | Description | +|-----------------------|------------------------------------------------------------------------------------------------------------| +| `subscribe` | A standard subscription event. Triggers a basic tier 1 sub. | +| `unsubscribe` | A standard unsubscribe event. Triggers a basic tier 1 sub. | +| `gift` | A gifted subscription event. Triggers a basic tier 1 sub. | +| `cheer` | Only usable with the `eventsub` transport, shows Cheers from chat. | +| `transaction` | Bits in Extensions transactions events. | +| `add-reward` | Channel Points EventSub event for a Custom Reward being added. | +| `update-reward` | Channel Points EventSub event for a Custom Reward being updated. | +| `remove-reward` | Channel Points EventSub event for a Custom Reward being removed. | +| `add-redemption` | Channel Points EventSub event for a redemption being performed. | +| `update-redemption` | Channel Points EventSub event for a redemption being updated. | +| `raid` | Channel Raid event with a random viewer count. | +| `revoke` | User authorization revoke event. Uses local Client as set in `twitch configure` or generates one randomly. | +| `stream-change` | Stream Changed event. | +| `streamup` | Stream online event. | +| `streamdown` | Sstream offline event. | +| `add-moderator` | Channel moderator add event. | +| `remove-moderator` | Channel moderator removal event. | +| `ban` | Channel ban event. | +| `unban` | Channel unban event. | +| `hype-train-begin` | Channel hype train start event. | +| `hype-train-progress` | Channel hype train progress event. | +| `hype-train-end` | Channel hype train end event. | **Flags** diff --git a/internal/models/streamup.go b/internal/models/streamup.go index 5741f322..b9f98753 100644 --- a/internal/models/streamup.go +++ b/internal/models/streamup.go @@ -21,16 +21,16 @@ type StreamUpWebSubResponse struct { } type StreamUpWebSubResponseData struct { - ID string `json:"id"` - UserID string `json:"user_id"` - UserLogin string `json:"user_login"` - UserName string `json:"user_name"` - GameID string `json:"game_id"` - Type string `json:"type"` - Title string `json:"title"` - ViewerCount int64 `json:"viewer_count"` - StartedAt string `json:"started_at"` - Language string `json:language` - ThumbnailURL string `json:thumbnail_url` - TagIDs []string `json:"tag_ids"` -} \ No newline at end of file + ID string `json:"id"` + UserID string `json:"user_id"` + UserLogin string `json:"user_login"` + UserName string `json:"user_name"` + GameID string `json:"game_id"` + Type string `json:"type"` + Title string `json:"title"` + ViewerCount int64 `json:"viewer_count"` + StartedAt string `json:"started_at"` + Language string `json:"language"` + ThumbnailURL string `json:"thumbnail_url"` + TagIDs []string `json:"tag_ids"` +}