Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/basecamp/hey-cli
/ functions
Functions
651 in github.com/basecamp/hey-cli
⨍
Functions
651
◇
Types & classes
120
↓ 89 callers
Method
Error
nolint:errname // bubbletea convention
internal/tui/tui.go:19
↓ 53 callers
Method
String
()
internal/tui/calendar_views.go:23
↓ 49 callers
Function
WithSummary
(s string)
internal/output/envelope.go:28
↓ 49 callers
Function
writeOK
writeOK wraps writer.OK and always injects statsOption() so every command response includes request stats when --stats is set.
internal/cmd/root.go:262
↓ 42 callers
Method
IsStyled
()
internal/output/writer.go:58
↓ 42 callers
Function
heyJSON
heyJSON runs the CLI with --json, expects success, and returns the parsed Response envelope.
tests/smoke/helpers_test.go:134
↓ 40 callers
Method
Update
Update handles messages relevant to this section. Returns the command and whether the message was consumed.
internal/tui/section_view.go:27
↓ 37 callers
Function
assertContains
--------------------------------------------------------------------------- Assertion helpers --------------------------------------------------------
tests/smoke/helpers_test.go:437
↓ 36 callers
Function
convertSDKError
convertSDKError maps hey.Error to apierr.Error for CLI error display.
internal/cmd/sdk.go:81
↓ 33 callers
Function
hey
--------------------------------------------------------------------------- CLI runner helpers -------------------------------------------------------
tests/smoke/helpers_test.go:102
↓ 28 callers
Method
Error
()
internal/cmd/args.go:14
↓ 26 callers
Function
dataAs
dataAs unmarshals the Data field from a Response into the given type.
tests/smoke/helpers_test.go:160
↓ 26 callers
Function
requireAuth
()
internal/cmd/root.go:165
↓ 25 callers
Function
testVC
()
internal/tui/mail_test.go:11
↓ 20 callers
Method
addRow
(row []string)
internal/cmd/formatting.go:38
↓ 18 callers
Function
fetchHTML
--------------------------------------------------------------------------- Server-side verification helpers -----------------------------------------
tests/smoke/helpers_test.go:408
↓ 18 callers
Function
heyOK
heyOK runs the CLI expecting exit code 0 and returns stdout.
tests/smoke/helpers_test.go:122
↓ 18 callers
Function
keyPress
(key string)
internal/tui/tui_test.go:61
↓ 15 callers
Method
Load
Load retrieves credentials for the given origin.
internal/auth/store.go:65
↓ 15 callers
Method
format
(value string)
internal/cmd/formatting.go:78
↓ 15 callers
Function
heyFail
heyFail runs the CLI and expects a non-zero exit code.
tests/smoke/helpers_test.go:149
↓ 14 callers
Method
Init
Init returns the command to run when this section becomes active.
internal/tui/section_view.go:23
↓ 14 callers
Function
ToText
ToText converts HTML content to plain text, preserving basic structure.
internal/htmlutil/htmlutil.go:12
↓ 14 callers
Function
WithBreadcrumbs
(b ...Breadcrumb)
internal/output/envelope.go:36
↓ 13 callers
Method
InThread
InThread reports whether a detail/thread view is open.
internal/tui/section_view.go:46
↓ 13 callers
Function
mailWithPostings
()
internal/tui/mail_test.go:15
↓ 12 callers
Method
SourceOf
(key string)
internal/config/config.go:175
↓ 12 callers
Function
intStr
intStr converts an int to string for use as a CLI argument.
tests/smoke/util_test.go:9
↓ 12 callers
Function
uniqueID
uniqueID returns a unique string suitable for identifying test-created data.
tests/smoke/helpers_test.go:459
↓ 10 callers
Method
HandleContentKey
HandleContentKey handles key presses when focus is on rowContent.
internal/tui/section_view.go:43
↓ 10 callers
Function
New
(opts Options)
internal/output/writer.go:38
↓ 10 callers
Function
makePostings
makePostings creates n test postings with sequential IDs starting at offset+1.
internal/cmd/box_test.go:63
↓ 10 callers
Function
newJournalView
(vc *viewContext)
internal/tui/journal.go:33
↓ 10 callers
Function
newTable
(w io.Writer)
internal/cmd/formatting.go:30
↓ 10 callers
Method
print
()
internal/cmd/formatting.go:43
↓ 9 callers
Method
Resize
Resize updates layout for new terminal dimensions.
internal/tui/section_view.go:52
↓ 9 callers
Method
Save
Save stores credentials for the given origin.
internal/auth/store.go:74
↓ 9 callers
Method
View
View renders the content area.
internal/tui/section_view.go:30
↓ 9 callers
Function
dateKey
(t time.Time)
internal/tui/calendar_views.go:138
↓ 9 callers
Function
newCalendarView
(vc *viewContext)
internal/tui/calendar.go:58
↓ 9 callers
Function
newMailView
(vc *viewContext)
internal/tui/mail.go:51
↓ 9 callers
Method
updateHelpBindings
()
internal/tui/tui.go:184
↓ 9 callers
Function
usageExactOneArg
()
internal/cmd/args.go:22
↓ 8 callers
Function
FormatFromFlags
(jsonFlag, quiet, idsOnly, count, markdown, styled, agent bool)
internal/output/writer.go:305
↓ 8 callers
Method
SubnavRight
()
internal/tui/section_view.go:40
↓ 8 callers
Function
formatTimestamp
--- Timestamp formatting helpers --- formatTimestamp formats a time.Time to "YYYY-MM-DDTHH:MM" display format.
internal/cmd/sdk.go:107
↓ 8 callers
Function
modelWithBoxes
()
internal/tui/tui_test.go:25
↓ 8 callers
Function
newRootCmd
()
internal/cmd/root.go:39
↓ 8 callers
Function
paginateBoxPostings
paginateBoxPostings follows next_history_url links to collect additional postings beyond the first page. When neither all nor a limit exceeding the fi
internal/cmd/box.go:237
↓ 8 callers
Function
seenServer
(t *testing.T)
internal/cmd/seen_test.go:15
↓ 7 callers
Function
ErrUsage
(msg string)
internal/apierr/apierr.go:27
↓ 7 callers
Function
Load
()
internal/config/config.go:115
↓ 7 callers
Function
WithNotice
(s string)
internal/output/envelope.go:32
↓ 7 callers
Method
doPostingAction
(label string, removes bool, fn func() error)
internal/tui/mail.go:288
↓ 7 callers
Function
formatTimestamp
--- Shared utilities ---
internal/tui/tui.go:342
↓ 7 callers
Function
truncateStr
(s string, maxLen int)
internal/tui/calendar_views.go:803
↓ 7 callers
Function
weekStartDate
weekStartDate returns the start of the week containing t.
internal/tui/calendar_views.go:60
↓ 6 callers
Method
Error
()
internal/apierr/apierr.go:19
↓ 6 callers
Method
IsAuthenticated
IsAuthenticated checks if there are valid credentials.
internal/auth/auth.go:123
↓ 6 callers
Function
TruncationNotice
(shown, total int)
internal/output/writer.go:291
↓ 6 callers
Function
extractTopicID
extractTopicID extracts the topic ID from an app_url like "http://host/topics/12345" or "http://host/topics/12345/...".
tests/smoke/util_test.go:15
↓ 6 callers
Function
filterRecordingsByType
filterRecordingsByType returns recordings matching the given type string.
internal/cmd/sdk.go:203
↓ 6 callers
Function
formatDate
formatDate formats a time.Time to "YYYY-MM-DD" display format.
internal/cmd/sdk.go:115
↓ 6 callers
Function
journalServer
(t *testing.T)
internal/cmd/journal_test.go:15
↓ 6 callers
Function
normalizeAny
normalizeAny converts a typed SDK response to an any suitable for writeOK by JSON round-tripping through json.Number-preserving decoder.
internal/cmd/sdk.go:231
↓ 6 callers
Function
parseEventTime
parseEventTime parses a recording timestamp to time.Time.
internal/tui/calendar_views.go:87
↓ 6 callers
Function
runJournalWrite
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/journal_test.go:64
↓ 6 callers
Function
runTodoAdd
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/todo_test.go:41
↓ 6 callers
Function
todoServer
(t *testing.T)
internal/cmd/todo_test.go:16
↓ 6 callers
Function
weekGridBorder
(left, mid, right string, colWidth int, muted lipgloss.Style)
internal/tui/calendar_views.go:539
↓ 5 callers
Function
ExtractImageURLs
ExtractImageURLs finds image URLs from <img src> tags and <figure data-trix-attachment> elements.
internal/htmlutil/htmlutil.go:29
↓ 5 callers
Method
GetStore
GetStore returns the credential store.
internal/auth/auth.go:260
↓ 5 callers
Method
HelpBindings
HelpBindings returns section-specific help bindings for rowContent.
internal/tui/section_view.go:33
↓ 5 callers
Method
OK
(data any, opts ...ResponseOption)
internal/output/writer.go:62
↓ 5 callers
Function
calendarWithRecordings
()
internal/tui/calendar_test.go:26
↓ 5 callers
Method
ensureInit
()
internal/auth/store.go:43
↓ 5 callers
Method
fetchPostings
(boxID int64)
internal/tui/mail.go:356
↓ 5 callers
Method
fetchRecordings
(calID int64)
internal/tui/calendar.go:288
↓ 5 callers
Function
kittyUploadAndPlace
kittyUploadAndPlace returns escape sequences to upload image data and create a virtual Unicode placement. The result should be sent via tea.Raw().
internal/tui/kitty.go:35
↓ 5 callers
Function
stdinIsTerminal
()
internal/cmd/formatting.go:92
↓ 5 callers
Method
syncLoading
syncLoading synchronizes the main loading state with the active section view.
internal/tui/tui.go:128
↓ 5 callers
Function
testBoxes
()
internal/tui/tui_test.go:34
↓ 5 callers
Function
testManager
(t *testing.T, server *httptest.Server)
internal/auth/auth_test.go:13
↓ 5 callers
Function
testPostings
()
internal/tui/tui_test.go:42
↓ 5 callers
Function
testStore
(t *testing.T)
internal/auth/store_test.go:9
↓ 4 callers
Method
CredentialKey
CredentialKey returns the base URL used as the credential storage key.
internal/auth/auth.go:265
↓ 4 callers
Method
Delete
Delete removes credentials for the given origin.
internal/auth/store.go:83
↓ 4 callers
Method
Err
(err error)
internal/output/writer.go:79
↓ 4 callers
Method
ExitThread
ExitThread closes the detail/thread view.
internal/tui/section_view.go:49
↓ 4 callers
Method
SetFromFlag
(key, value string)
internal/config/config.go:186
↓ 4 callers
Method
SubnavItems
SubnavItems returns the subnav state for header rendering.
internal/tui/section_view.go:36
↓ 4 callers
Method
SubnavLeft
SubnavLeft / SubnavRight handle subnav row navigation.
internal/tui/section_view.go:39
↓ 4 callers
Function
envOr
--------------------------------------------------------------------------- Setup helpers ------------------------------------------------------------
tests/smoke/helpers_test.go:189
↓ 4 callers
Function
extractMutationInfoFromResult
--- Mutation info extraction --- extractMutationInfoFromResult extracts mutation info from a typed SDK response by JSON round-tripping to map[string]a
internal/cmd/sdk.go:218
↓ 4 callers
Function
findPersonalCalendarID
findPersonalCalendarID finds the personal calendar from a list of calendars.
internal/cmd/sdk.go:155
↓ 4 callers
Function
journalServerWithReadBehavior
journalServerWithReadBehavior creates a journal test server. readBehavior controls GET /calendar/days/{date}/journal_entry: "200" — re
internal/cmd/journal_test.go:26
↓ 4 callers
Method
loadAllFromFile
()
internal/auth/store.go:116
↓ 4 callers
Function
parseAddresses
(s string)
internal/cmd/compose.go:108
↓ 4 callers
Function
readStdin
()
internal/cmd/formatting.go:100
↓ 4 callers
Method
rebuildView
rebuildView re-renders the current view mode content into the viewport.
internal/tui/calendar.go:198
next →
1–100 of 651, ranked by callers