-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add Pool column to browsers list #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ | |
| "github.com/kernel/kernel-go-sdk/option" | ||
| "github.com/kernel/kernel-go-sdk/packages/pagination" | ||
| "github.com/kernel/kernel-go-sdk/packages/ssestream" | ||
| "github.com/kernel/kernel-go-sdk/shared" | ||
|
Check failure on line 23 in cmd/browsers.go
|
||
| "github.com/pterm/pterm" | ||
| "github.com/spf13/cobra" | ||
| "github.com/spf13/pflag" | ||
|
|
@@ -278,7 +278,7 @@ | |
| } | ||
|
|
||
| // Prepare table data | ||
| headers := []string{"Browser ID", "Created At", "Persistent ID", "Profile", "CDP WS URL", "Live View URL"} | ||
| headers := []string{"Browser ID", "Created At", "Persistent ID", "Profile", "Pool", "CDP WS URL", "Live View URL"} | ||
| showDeletedAt := in.IncludeDeleted || in.Status == "deleted" || in.Status == "all" | ||
| if showDeletedAt { | ||
| headers = append(headers, "Deleted At") | ||
|
|
@@ -298,11 +298,17 @@ | |
| profile = browser.Profile.ID | ||
| } | ||
|
|
||
| poolID := "-" | ||
| if browser.PoolID != "" { | ||
| poolID = browser.PoolID | ||
| } | ||
|
|
||
| row := []string{ | ||
| browser.SessionID, | ||
| util.FormatLocal(browser.CreatedAt), | ||
| persistentID, | ||
| profile, | ||
| poolID, | ||
| truncateURL(browser.CdpWsURL, 50), | ||
| truncateURL(browser.BrowserLiveViewURL, 50), | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,3 +59,5 @@ require ( | |
| golang.org/x/text v0.33.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| ) | ||
|
|
||
| replace github.com/kernel/kernel-go-sdk => github.com/stainless-sdks/kernel-go v0.0.0-20260219230517-75bf6df66f0b | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Development SDK replace directive committed to productionHigh Severity The |
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should default to pool name over id if available!