-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Import `go-whatsup-client`. - Convert statuspage.io and slack `ReadStatus()` to take in the whatsup client and use it to get a status page. - Add service name and page URL as fields to the `statuspageio.ClientReader` struct. These are used when making the call via the whatsup client. - Pass a client into `GetOverview()` and create the appropriate struct based on the service type of the site. The client then gets passed into the `ReadStatus()` method associated with the struct type. - Clean out all the now dead code. - Polish up documentation. - Comment out goimports pre-commit hook for now. Seems like there isn't a Go 1.21 compatible version yet... - Update go version in CI. - Update revive install in CI. Closes #41
- Loading branch information
Showing
15 changed files
with
158 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
golang 1.20.1 | ||
golang 1.21.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,9 +40,11 @@ as examples, we would create an entry in the configuration file like this: | |
|
||
## Usage | ||
|
||
Clone this repo and build the plugin. | ||
Clone this repo, install dependencies, and build the plugin. | ||
|
||
```shell | ||
git clone [email protected]:sprak3000/xbar-whats-up.git | ||
make setup-osx-env | ||
make build | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
module github.com/sprak3000/xbar-whats-up | ||
|
||
go 1.17 | ||
go 1.21 | ||
|
||
require github.com/sprak3000/go-client v1.0.1 | ||
toolchain go1.21.1 | ||
|
||
require github.com/sprak3000/go-client v1.1.0 | ||
|
||
require ( | ||
github.com/sprak3000/go-glitch v1.0.1 | ||
github.com/stretchr/testify v1.7.1 | ||
github.com/sprak3000/go-glitch v1.1.0 | ||
github.com/sprak3000/go-whatsup-client v1.1.0 | ||
github.com/stretchr/testify v1.8.4 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.0 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/golang/mock v1.6.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.