Skip to content

Commit ea2ced9

Browse files
authored
feat: Add interactive listen and --filter-x param for session filtering (#161)
* feat: Add "r" and "o" keyboard shortcut while in interactive listen. * chore: Tweak console output for clarify * feat: Add new output and keyboard shortcut * wip * wip * chore: Add event request * feat: Add new styling * feat: Add navigation for last 10 * fix: Pin the selected event * fix: Fix remaining issue * fix: Fix typo * chore: Terminology update * chore: update readme * chore: Update readme * chore: Refactor * feat: Improve event details display * chore: Fix various issues * feat: Add output mode control * chore: Cleanup history and handle resize * feat: Refactor to use TUI * chore: Refactor renderer and proxy * chore: Fix data display * feat: Add listen --filter param for session filtering * chore: Refactor package stucture * chore: Copy improvements * fix: Fix tests * chore: Update go version * fix: Fix acceptance test * fix: Fix go version * chore: update go version * chore: update dependencies * test: update breaking toml test behavior --------- Co-authored-by: Alex Luong <[email protected]>
2 parents 5881c10 + 4614261 commit ea2ced9

31 files changed

+2581
-613
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.18.1
19+
go-version: 1.24.9
2020
- name: Run GoReleaser
2121
uses: goreleaser/goreleaser-action@v5
2222
with:
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Go
4848
uses: actions/setup-go@v5
4949
with:
50-
go-version: 1.18.1
50+
go-version: 1.24.9
5151
- name: Run GoReleaser
5252
uses: goreleaser/goreleaser-action@v5
5353
with:
@@ -66,7 +66,7 @@ jobs:
6666
- name: Set up Go
6767
uses: actions/setup-go@v5
6868
with:
69-
go-version: 1.18.1
69+
go-version: 1.24.9
7070
- name: Run GoReleaser
7171
uses: goreleaser/goreleaser-action@v5
7272
with:

.github/workflows/test-acceptance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v3
1919
with:
20-
go-version: "1.18"
20+
go-version: "1.24.9"
2121

2222
- name: Make script executable
2323
run: chmod +x test-scripts/test-acceptance.sh

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Go
2222
uses: actions/setup-go@v5
2323
with:
24-
go-version: 1.18.1
24+
go-version: 1.24.9
2525
- name: Run GoReleaser
2626
uses: goreleaser/goreleaser-action@v5
2727
with:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Go
5454
uses: actions/setup-go@v5
5555
with:
56-
go-version: 1.18.1
56+
go-version: 1.24.9
5757
- name: Run GoReleaser
5858
uses: goreleaser/goreleaser-action@v5
5959
with:
@@ -72,7 +72,7 @@ jobs:
7272
- name: Set up Go
7373
uses: actions/setup-go@v5
7474
with:
75-
go-version: 1.18.1
75+
go-version: 1.24.9
7676
- name: Run GoReleaser
7777
uses: goreleaser/goreleaser-action@v5
7878
with:

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
golang 1.18.1
1+
golang 1.24.9

README.md

Lines changed: 220 additions & 76 deletions
Large diffs are not rendered by default.

go.mod

Lines changed: 42 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,71 @@
11
module github.com/hookdeck/hookdeck-cli
22

3-
go 1.18
3+
go 1.24.9
44

55
require (
66
github.com/AlecAivazis/survey/v2 v2.3.7
77
github.com/BurntSushi/toml v1.5.0
88
github.com/briandowns/spinner v1.23.2
9+
github.com/charmbracelet/bubbles v0.21.0
10+
github.com/charmbracelet/bubbletea v1.3.10
11+
github.com/charmbracelet/lipgloss v1.1.0
912
github.com/google/go-github/v28 v28.1.1
1013
github.com/gorilla/websocket v1.5.3
1114
github.com/gosimple/slug v1.15.0
12-
github.com/hookdeck/hookdeck-go-sdk v0.4.1
15+
github.com/hookdeck/hookdeck-go-sdk v0.7.0
1316
github.com/logrusorgru/aurora v2.0.3+incompatible
1417
github.com/mitchellh/go-homedir v1.1.0
1518
github.com/sirupsen/logrus v1.9.3
16-
github.com/spf13/cobra v1.9.1
17-
github.com/spf13/pflag v1.0.7
18-
github.com/spf13/viper v1.7.1
19-
github.com/stretchr/testify v1.11.0
19+
github.com/spf13/cobra v1.10.1
20+
github.com/spf13/pflag v1.0.10
21+
github.com/spf13/viper v1.21.0
22+
github.com/stretchr/testify v1.11.1
2023
github.com/tidwall/pretty v1.2.1
2124
github.com/x-cray/logrus-prefixed-formatter v0.5.2
22-
golang.org/x/sys v0.28.0
23-
golang.org/x/term v0.27.0
25+
golang.org/x/sys v0.37.0
26+
golang.org/x/term v0.36.0
2427
)
2528

2629
require (
30+
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
31+
github.com/charmbracelet/colorprofile v0.3.2 // indirect
32+
github.com/charmbracelet/x/ansi v0.10.2 // indirect
33+
github.com/charmbracelet/x/cellbuf v0.0.13 // indirect
34+
github.com/charmbracelet/x/term v0.2.1 // indirect
35+
github.com/clipperhouse/uax29/v2 v2.2.0 // indirect
2736
github.com/davecgh/go-spew v1.1.1 // indirect
28-
github.com/fatih/color v1.9.0 // indirect
29-
github.com/fsnotify/fsnotify v1.4.9 // indirect
30-
github.com/google/go-querystring v1.0.0 // indirect
37+
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
38+
github.com/fatih/color v1.18.0 // indirect
39+
github.com/fsnotify/fsnotify v1.9.0 // indirect
40+
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
41+
github.com/google/go-querystring v1.1.0 // indirect
42+
github.com/google/uuid v1.6.0 // indirect
3143
github.com/gosimple/unidecode v1.0.1 // indirect
32-
github.com/hashicorp/hcl v1.0.0 // indirect
3344
github.com/inconshreveable/mousetrap v1.1.0 // indirect
3445
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
35-
github.com/kr/text v0.2.0 // indirect
36-
github.com/magiconair/properties v1.8.3 // indirect
37-
github.com/mattn/go-colorable v0.1.7 // indirect
38-
github.com/mattn/go-isatty v0.0.12 // indirect
46+
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
47+
github.com/mattn/go-colorable v0.1.14 // indirect
48+
github.com/mattn/go-isatty v0.0.20 // indirect
49+
github.com/mattn/go-localereader v0.0.1 // indirect
50+
github.com/mattn/go-runewidth v0.0.19 // indirect
3951
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
40-
github.com/mitchellh/mapstructure v1.3.3 // indirect
52+
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
53+
github.com/muesli/cancelreader v0.2.2 // indirect
54+
github.com/muesli/termenv v0.16.0 // indirect
4155
github.com/onsi/ginkgo v1.14.1 // indirect
4256
github.com/onsi/gomega v1.10.1 // indirect
43-
github.com/pelletier/go-toml v1.8.1 // indirect
57+
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
4458
github.com/pmezard/go-difflib v1.0.0 // indirect
45-
github.com/spf13/afero v1.4.0 // indirect
46-
github.com/spf13/cast v1.3.1 // indirect
47-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
48-
github.com/subosito/gotenv v1.2.0 // indirect
49-
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
50-
golang.org/x/text v0.4.0 // indirect
59+
github.com/rivo/uniseg v0.4.7 // indirect
60+
github.com/sagikazarmark/locafero v0.12.0 // indirect
61+
github.com/spf13/afero v1.15.0 // indirect
62+
github.com/spf13/cast v1.10.0 // indirect
63+
github.com/subosito/gotenv v1.6.0 // indirect
64+
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
65+
go.yaml.in/yaml/v3 v3.0.4 // indirect
66+
golang.org/x/crypto v0.43.0 // indirect
67+
golang.org/x/text v0.30.0 // indirect
5168
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
52-
gopkg.in/ini.v1 v1.61.0 // indirect
53-
gopkg.in/yaml.v2 v2.3.0 // indirect
69+
gopkg.in/yaml.v2 v2.4.0 // indirect
5470
gopkg.in/yaml.v3 v3.0.1 // indirect
5571
)

0 commit comments

Comments
 (0)