MCPcopy Create free account

hub / github.com/basecamp/hey-cli / functions

Functions651 in github.com/basecamp/hey-cli

↓ 89 callersMethodError
nolint:errname // bubbletea convention
internal/tui/tui.go:19
↓ 53 callersMethodString
()
internal/tui/calendar_views.go:23
↓ 49 callersFunctionWithSummary
(s string)
internal/output/envelope.go:28
↓ 49 callersFunctionwriteOK
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 callersMethodIsStyled
()
internal/output/writer.go:58
↓ 42 callersFunctionheyJSON
heyJSON runs the CLI with --json, expects success, and returns the parsed Response envelope.
tests/smoke/helpers_test.go:134
↓ 40 callersMethodUpdate
Update handles messages relevant to this section. Returns the command and whether the message was consumed.
internal/tui/section_view.go:27
↓ 37 callersFunctionassertContains
--------------------------------------------------------------------------- Assertion helpers --------------------------------------------------------
tests/smoke/helpers_test.go:437
↓ 36 callersFunctionconvertSDKError
convertSDKError maps hey.Error to apierr.Error for CLI error display.
internal/cmd/sdk.go:81
↓ 33 callersFunctionhey
--------------------------------------------------------------------------- CLI runner helpers -------------------------------------------------------
tests/smoke/helpers_test.go:102
↓ 28 callersMethodError
()
internal/cmd/args.go:14
↓ 26 callersFunctiondataAs
dataAs unmarshals the Data field from a Response into the given type.
tests/smoke/helpers_test.go:160
↓ 26 callersFunctionrequireAuth
()
internal/cmd/root.go:165
↓ 25 callersFunctiontestVC
()
internal/tui/mail_test.go:11
↓ 20 callersMethodaddRow
(row []string)
internal/cmd/formatting.go:38
↓ 18 callersFunctionfetchHTML
--------------------------------------------------------------------------- Server-side verification helpers -----------------------------------------
tests/smoke/helpers_test.go:408
↓ 18 callersFunctionheyOK
heyOK runs the CLI expecting exit code 0 and returns stdout.
tests/smoke/helpers_test.go:122
↓ 18 callersFunctionkeyPress
(key string)
internal/tui/tui_test.go:61
↓ 15 callersMethodLoad
Load retrieves credentials for the given origin.
internal/auth/store.go:65
↓ 15 callersMethodformat
(value string)
internal/cmd/formatting.go:78
↓ 15 callersFunctionheyFail
heyFail runs the CLI and expects a non-zero exit code.
tests/smoke/helpers_test.go:149
↓ 14 callersMethodInit
Init returns the command to run when this section becomes active.
internal/tui/section_view.go:23
↓ 14 callersFunctionToText
ToText converts HTML content to plain text, preserving basic structure.
internal/htmlutil/htmlutil.go:12
↓ 14 callersFunctionWithBreadcrumbs
(b ...Breadcrumb)
internal/output/envelope.go:36
↓ 13 callersMethodInThread
InThread reports whether a detail/thread view is open.
internal/tui/section_view.go:46
↓ 13 callersFunctionmailWithPostings
()
internal/tui/mail_test.go:15
↓ 12 callersMethodSourceOf
(key string)
internal/config/config.go:175
↓ 12 callersFunctionintStr
intStr converts an int to string for use as a CLI argument.
tests/smoke/util_test.go:9
↓ 12 callersFunctionuniqueID
uniqueID returns a unique string suitable for identifying test-created data.
tests/smoke/helpers_test.go:459
↓ 10 callersMethodHandleContentKey
HandleContentKey handles key presses when focus is on rowContent.
internal/tui/section_view.go:43
↓ 10 callersFunctionNew
(opts Options)
internal/output/writer.go:38
↓ 10 callersFunctionmakePostings
makePostings creates n test postings with sequential IDs starting at offset+1.
internal/cmd/box_test.go:63
↓ 10 callersFunctionnewJournalView
(vc *viewContext)
internal/tui/journal.go:33
↓ 10 callersFunctionnewTable
(w io.Writer)
internal/cmd/formatting.go:30
↓ 10 callersMethodprint
()
internal/cmd/formatting.go:43
↓ 9 callersMethodResize
Resize updates layout for new terminal dimensions.
internal/tui/section_view.go:52
↓ 9 callersMethodSave
Save stores credentials for the given origin.
internal/auth/store.go:74
↓ 9 callersMethodView
View renders the content area.
internal/tui/section_view.go:30
↓ 9 callersFunctiondateKey
(t time.Time)
internal/tui/calendar_views.go:138
↓ 9 callersFunctionnewCalendarView
(vc *viewContext)
internal/tui/calendar.go:58
↓ 9 callersFunctionnewMailView
(vc *viewContext)
internal/tui/mail.go:51
↓ 9 callersMethodupdateHelpBindings
()
internal/tui/tui.go:184
↓ 9 callersFunctionusageExactOneArg
()
internal/cmd/args.go:22
↓ 8 callersFunctionFormatFromFlags
(jsonFlag, quiet, idsOnly, count, markdown, styled, agent bool)
internal/output/writer.go:305
↓ 8 callersMethodSubnavRight
()
internal/tui/section_view.go:40
↓ 8 callersFunctionformatTimestamp
--- Timestamp formatting helpers --- formatTimestamp formats a time.Time to "YYYY-MM-DDTHH:MM" display format.
internal/cmd/sdk.go:107
↓ 8 callersFunctionmodelWithBoxes
()
internal/tui/tui_test.go:25
↓ 8 callersFunctionnewRootCmd
()
internal/cmd/root.go:39
↓ 8 callersFunctionpaginateBoxPostings
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 callersFunctionseenServer
(t *testing.T)
internal/cmd/seen_test.go:15
↓ 7 callersFunctionErrUsage
(msg string)
internal/apierr/apierr.go:27
↓ 7 callersFunctionLoad
()
internal/config/config.go:115
↓ 7 callersFunctionWithNotice
(s string)
internal/output/envelope.go:32
↓ 7 callersMethoddoPostingAction
(label string, removes bool, fn func() error)
internal/tui/mail.go:288
↓ 7 callersFunctionformatTimestamp
--- Shared utilities ---
internal/tui/tui.go:342
↓ 7 callersFunctiontruncateStr
(s string, maxLen int)
internal/tui/calendar_views.go:803
↓ 7 callersFunctionweekStartDate
weekStartDate returns the start of the week containing t.
internal/tui/calendar_views.go:60
↓ 6 callersMethodError
()
internal/apierr/apierr.go:19
↓ 6 callersMethodIsAuthenticated
IsAuthenticated checks if there are valid credentials.
internal/auth/auth.go:123
↓ 6 callersFunctionTruncationNotice
(shown, total int)
internal/output/writer.go:291
↓ 6 callersFunctionextractTopicID
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 callersFunctionfilterRecordingsByType
filterRecordingsByType returns recordings matching the given type string.
internal/cmd/sdk.go:203
↓ 6 callersFunctionformatDate
formatDate formats a time.Time to "YYYY-MM-DD" display format.
internal/cmd/sdk.go:115
↓ 6 callersFunctionjournalServer
(t *testing.T)
internal/cmd/journal_test.go:15
↓ 6 callersFunctionnormalizeAny
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 callersFunctionparseEventTime
parseEventTime parses a recording timestamp to time.Time.
internal/tui/calendar_views.go:87
↓ 6 callersFunctionrunJournalWrite
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/journal_test.go:64
↓ 6 callersFunctionrunTodoAdd
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/todo_test.go:41
↓ 6 callersFunctiontodoServer
(t *testing.T)
internal/cmd/todo_test.go:16
↓ 6 callersFunctionweekGridBorder
(left, mid, right string, colWidth int, muted lipgloss.Style)
internal/tui/calendar_views.go:539
↓ 5 callersFunctionExtractImageURLs
ExtractImageURLs finds image URLs from <img src> tags and <figure data-trix-attachment> elements.
internal/htmlutil/htmlutil.go:29
↓ 5 callersMethodGetStore
GetStore returns the credential store.
internal/auth/auth.go:260
↓ 5 callersMethodHelpBindings
HelpBindings returns section-specific help bindings for rowContent.
internal/tui/section_view.go:33
↓ 5 callersMethodOK
(data any, opts ...ResponseOption)
internal/output/writer.go:62
↓ 5 callersFunctioncalendarWithRecordings
()
internal/tui/calendar_test.go:26
↓ 5 callersMethodensureInit
()
internal/auth/store.go:43
↓ 5 callersMethodfetchPostings
(boxID int64)
internal/tui/mail.go:356
↓ 5 callersMethodfetchRecordings
(calID int64)
internal/tui/calendar.go:288
↓ 5 callersFunctionkittyUploadAndPlace
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 callersFunctionstdinIsTerminal
()
internal/cmd/formatting.go:92
↓ 5 callersMethodsyncLoading
syncLoading synchronizes the main loading state with the active section view.
internal/tui/tui.go:128
↓ 5 callersFunctiontestBoxes
()
internal/tui/tui_test.go:34
↓ 5 callersFunctiontestManager
(t *testing.T, server *httptest.Server)
internal/auth/auth_test.go:13
↓ 5 callersFunctiontestPostings
()
internal/tui/tui_test.go:42
↓ 5 callersFunctiontestStore
(t *testing.T)
internal/auth/store_test.go:9
↓ 4 callersMethodCredentialKey
CredentialKey returns the base URL used as the credential storage key.
internal/auth/auth.go:265
↓ 4 callersMethodDelete
Delete removes credentials for the given origin.
internal/auth/store.go:83
↓ 4 callersMethodErr
(err error)
internal/output/writer.go:79
↓ 4 callersMethodExitThread
ExitThread closes the detail/thread view.
internal/tui/section_view.go:49
↓ 4 callersMethodSetFromFlag
(key, value string)
internal/config/config.go:186
↓ 4 callersMethodSubnavItems
SubnavItems returns the subnav state for header rendering.
internal/tui/section_view.go:36
↓ 4 callersMethodSubnavLeft
SubnavLeft / SubnavRight handle subnav row navigation.
internal/tui/section_view.go:39
↓ 4 callersFunctionenvOr
--------------------------------------------------------------------------- Setup helpers ------------------------------------------------------------
tests/smoke/helpers_test.go:189
↓ 4 callersFunctionextractMutationInfoFromResult
--- 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 callersFunctionfindPersonalCalendarID
findPersonalCalendarID finds the personal calendar from a list of calendars.
internal/cmd/sdk.go:155
↓ 4 callersFunctionjournalServerWithReadBehavior
journalServerWithReadBehavior creates a journal test server. readBehavior controls GET /calendar/days/{date}/journal_entry: "200" — re
internal/cmd/journal_test.go:26
↓ 4 callersMethodloadAllFromFile
()
internal/auth/store.go:116
↓ 4 callersFunctionparseAddresses
(s string)
internal/cmd/compose.go:108
↓ 4 callersFunctionreadStdin
()
internal/cmd/formatting.go:100
↓ 4 callersMethodrebuildView
rebuildView re-renders the current view mode content into the viewport.
internal/tui/calendar.go:198
next →1–100 of 651, ranked by callers