Skip to content

Commit

Permalink
Merge pull request #57 from rneatherway/extclient
Browse files Browse the repository at this point in the history
Extract core client functionality
  • Loading branch information
rneatherway authored Jan 17, 2024
2 parents 65aa847 + 0c89811 commit 86f738f
Show file tree
Hide file tree
Showing 18 changed files with 123 additions and 737 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.18.1
go-version: 1.21.4

- name: Build
uses: goreleaser/goreleaser-action@v4
Expand All @@ -28,14 +28,14 @@ jobs:

test:
name: Test
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.18.1
go-version: 1.21.4

- name: Test
run: go test ./...
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.18.1
go-version: 1.21.4

- name: Release
uses: goreleaser/goreleaser-action@v4
Expand Down
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

4 changes: 2 additions & 2 deletions cmd/gh-slack/cmd/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ var apiCmd = &cobra.Command{
verb = "POST"
}
} else {
return fmt.Errorf("Expected 1 or 2 arguments: verb and/or path, see help")
return fmt.Errorf("expected 1 or 2 arguments: verb and/or path, see help")
}

response, err := client.API(verb, path, mappedFields, body)
response, err := client.API(verb, path, mappedFields, []byte(body))
if err != nil {
return err
}
Expand Down
42 changes: 23 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
module github.com/rneatherway/gh-slack

go 1.18
go 1.21

toolchain go1.21.4

require (
github.com/billgraziano/dpapi v0.4.0
github.com/cli/go-gh v1.2.1
github.com/keybase/go-keychain v0.0.0-20220506172723-c18928ccd7f2
github.com/rneatherway/slack v0.0.0-20240117120640-5eb19a83b60c
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
golang.org/x/crypto v0.0.0-20220507011949-2cf3adece122
modernc.org/sqlite v1.15.3
nhooyr.io/websocket v1.8.7
r00t2.io/gosecret v1.1.5
)

require (
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/billgraziano/dpapi v0.4.0 // indirect
github.com/charmbracelet/glamour v0.5.1-0.20220727184942-e70ff2d969da // indirect
github.com/cli/safeexec v1.0.0 // indirect
github.com/cli/shurcooL-graphql v0.0.2 // indirect
github.com/dlclark/regexp2 v1.4.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/godbus/dbus/v5 v5.0.6 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/css v1.0.0 // indirect
github.com/henvic/httpretty v0.0.6 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/keybase/go-keychain v0.0.0-20231213204628-e32184a8f19f // indirect
github.com/klauspost/compress v1.10.3 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
Expand All @@ -37,26 +38,29 @@ require (
github.com/muesli/termenv v0.12.0 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e // indirect
github.com/yuin/goldmark v1.4.4 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
golang.org/x/crypto v0.16.0 // indirect
golang.org/x/mod v0.3.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/uint128 v1.1.1 // indirect
modernc.org/cc/v3 v3.35.24 // indirect
modernc.org/ccgo/v3 v3.15.17 // indirect
modernc.org/libc v1.14.12 // indirect
modernc.org/mathutil v1.4.1 // indirect
modernc.org/memory v1.0.7 // indirect
modernc.org/opt v0.1.1 // indirect
modernc.org/strutil v1.1.1 // indirect
modernc.org/token v1.0.0 // indirect
lukechampine.com/uint128 v1.2.0 // indirect
modernc.org/cc/v3 v3.40.0 // indirect
modernc.org/ccgo/v3 v3.16.13 // indirect
modernc.org/libc v1.29.0 // indirect
modernc.org/mathutil v1.6.0 // indirect
modernc.org/memory v1.7.2 // indirect
modernc.org/opt v0.1.3 // indirect
modernc.org/sqlite v1.28.0 // indirect
modernc.org/strutil v1.1.3 // indirect
modernc.org/token v1.0.1 // indirect
r00t2.io/gosecret v1.1.5 // indirect
r00t2.io/goutils v1.1.2 // indirect
)
Loading

0 comments on commit 86f738f

Please sign in to comment.