MCPcopy Create free account

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

Functions651 in github.com/basecamp/hey-cli

↓ 4 callersFunctionrenderImagePlaceholder
renderImagePlaceholder returns U+10EEEE characters with combining diacritics that encode image position for Kitty's unicode placeholder rendering.
internal/tui/kitty.go:69
↓ 4 callersFunctionrenderRule
--- Rendering --- renderRule draws a horizontal rule with a centered label: ——————————————————— label ———————————————————
internal/tui/nav.go:151
↓ 4 callersFunctionrunSeen
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/seen_test.go:47
↓ 4 callersFunctionrunUnseen
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/seen_test.go:71
↓ 4 callersFunctiontestCalendars
()
internal/tui/calendar_test.go:10
↓ 4 callersFunctionunwrapCalendars
--- Calendar helpers --- unwrapCalendars extracts []generated.Calendar from a CalendarListPayload.
internal/cmd/sdk.go:143
↓ 4 callersFunctionwalkChildren
(b *strings.Builder, n *html.Node)
internal/htmlutil/htmlutil.go:120
↓ 3 callersMethodAccessToken
AccessToken returns a valid access token, refreshing if needed. If HEY_TOKEN env var is set, it's used directly.
internal/auth/auth.go:47
↓ 3 callersFunctionConfigDir
()
internal/config/config.go:54
↓ 3 callersMethodEffectiveFormat
()
internal/output/writer.go:48
↓ 3 callersFunctionExitCodeFor
(err error)
internal/output/codes.go:17
↓ 3 callersFunctionOpen
Open launches $EDITOR with a temp file containing initialContent, waits for the editor to close, and returns the edited content.
internal/editor/editor.go:12
↓ 3 callersFunctionParseTopicEntriesHTML
ParseTopicEntriesHTML extracts structured entry data from the HTML page served by /topics/{id}/entries. The JSON API does not return full entry bodies
internal/htmlutil/entries.go:70
↓ 3 callersMethodSave
()
internal/config/config.go:224
↓ 3 callersMethodUsingKeyring
UsingKeyring returns true if the store is using the system keyring.
internal/auth/store.go:231
↓ 3 callersFunctionbrowserPageText
browserPageText navigates to the given URL and returns the page's innerText. It creates a fresh browser context and sets the session cookie directly.
tests/smoke/helpers_test.go:362
↓ 3 callersFunctioncleanUseLine
(useLine string)
internal/cmd/args.go:46
↓ 3 callersMethodcredentialsPath
()
internal/auth/store.go:112
↓ 3 callersFunctionextractIDFromMap
extractIDFromMap tries to get an "id" field from a map as a string.
tests/smoke/todo_test.go:126
↓ 3 callersFunctionextractImageURLs
(s string)
internal/tui/html.go:9
↓ 3 callersMethodfetchJournalEntry
--- Fetch command ---
internal/tui/journal.go:135
↓ 3 callersFunctiongenerateJournalDates
--- Journal date generation ---
internal/tui/journal.go:166
↓ 3 callersFunctiongetAttr
(n *html.Node, key string)
internal/htmlutil/htmlutil.go:111
↓ 3 callersFunctionglobalConfigPath
()
internal/config/config.go:87
↓ 3 callersMethodhandleBoxShortcut
handleBoxShortcut handles number-key shortcuts for switching boxes.
internal/tui/mail.go:218
↓ 3 callersFunctionhtmlToText
(s string)
internal/tui/html.go:5
↓ 3 callersFunctionimageDimensions
imageDimensions calculates display size in terminal cells for an image. Terminal cells are roughly 2:1 (height:width ratio).
internal/tui/kitty.go:104
↓ 3 callersFunctionkey
(origin string)
internal/auth/store.go:60
↓ 3 callersFunctionlistPersonalRecordings
listPersonalRecordings fetches recordings from the user's personal calendar with a lookback/lookahead window matching the old CLI behavior.
internal/cmd/sdk.go:176
↓ 3 callersFunctionmockFetcher
mockFetcher returns a pageFetcher that serves a predefined sequence of pages. Each call returns the next page; after all pages are exhausted it return
internal/cmd/box_test.go:73
↓ 3 callersMethodmoveDown
()
internal/tui/content.go:56
↓ 3 callersFunctionorderBoxes
orderBoxes sorts boxes by the preferred order. Known boxes appear first in their predefined order; unknown boxes are appended at the end.
internal/tui/nav.go:75
↓ 3 callersMethodrefreshLocked
(ctx context.Context, creds *Credentials)
internal/auth/auth.go:233
↓ 3 callersFunctionrunJournalRead
--- Journal read tests ---
internal/cmd/journal_test.go:171
↓ 3 callersMethodselectedPosting
()
internal/tui/content.go:76
↓ 3 callersMethodsetPostings
(postings []models.Posting)
internal/tui/content.go:38
↓ 3 callersFunctionspinnerTick
spinnerTick returns a command that ticks every 50ms for the loading animation.
internal/tui/loading.go:137
↓ 3 callersMethodswitchSection
(sec section)
internal/tui/tui.go:296
↓ 3 callersFunctiontestModel
--- Test helpers ---
internal/tui/tui_test.go:15
↓ 3 callersFunctiontoMap
(item any)
internal/output/writer.go:237
↓ 3 callersFunctiontoSlice
(data any)
internal/output/writer.go:217
↓ 3 callersFunctiontruncate
(s string, maxWidth int)
internal/cmd/formatting.go:85
↓ 3 callersFunctionusageErrorf
(format string, args ...any)
internal/cmd/args.go:18
↓ 3 callersFunctionvalidateBaseURL
(base string)
internal/config/config.go:242
↓ 3 callersMethodview
()
internal/tui/help.go:43
↓ 3 callersMethodwriteQuiet
(data any)
internal/output/writer.go:114
↓ 2 callersFunctionErrAuth
(msg string)
internal/apierr/apierr.go:43
↓ 2 callersFunctionErrNotFound
(resource, identifier string)
internal/apierr/apierr.go:35
↓ 2 callersMethodLogin
Login initiates the browser-based OAuth login flow with PKCE.
internal/auth/auth.go:141
↓ 2 callersMethodLoginWithToken
LoginWithToken stores a pre-provided bearer token.
internal/auth/auth.go:193
↓ 2 callersFunctionNewManager
NewManager creates a new auth manager.
internal/auth/auth.go:32
↓ 2 callersFunctionNewStore
NewStore creates a credential store. Keyring availability is probed lazily on first credential operation, not at construction time.
internal/auth/store.go:36
↓ 2 callersFunctionNormalizeJSONNumbers
(data []byte)
internal/output/writer.go:324
↓ 2 callersMethodResolveTopicID
ResolveTopicID returns the topic ID for this posting, preferring the embedded topic_id/topic fields, then parsing from app_url. Returns 0 if no topic
internal/models/box.go:49
↓ 2 callersFunctionRun
Run starts the TUI program.
internal/tui/tui.go:372
↓ 2 callersFunctionassertNotContains
(t *testing.T, haystack, needle string)
tests/smoke/helpers_test.go:444
↓ 2 callersFunctionboxTruncationNotice
boxTruncationNotice returns a user-facing notice about truncated or paginated results.
internal/cmd/box.go:269
↓ 2 callersFunctioncenterPad
(s string, width int)
internal/tui/calendar_views.go:820
↓ 2 callersFunctioncliEnv
cliEnv returns the environment variables used for all CLI invocations.
tests/smoke/helpers_test.go:173
↓ 2 callersFunctioncreateTestHabit
createTestHabit creates a habit via the Rails API using the session cookie. Returns the habit ID from the JSON response.
tests/smoke/habit_test.go:17
↓ 2 callersFunctiondayLabelOrDefault
dayLabelOrDefault returns the custom day label if one exists, otherwise falls back to the provided default label function.
internal/tui/calendar_views.go:748
↓ 2 callersFunctiondeleteTestHabit
deleteTestHabit deletes a habit via the Rails API.
tests/smoke/habit_test.go:91
↓ 2 callersMethodensureVisible
()
internal/tui/content.go:63
↓ 2 callersFunctioneventsByDate
eventsByDate groups events by date (YYYY-MM-DD), expanding multi-day events so they appear on every day they span.
internal/tui/calendar_views.go:106
↓ 2 callersFunctionextractEmails
(html string)
internal/htmlutil/entries.go:55
↓ 2 callersFunctionfetchImageData
(imgURL string)
internal/tui/tui.go:351
↓ 2 callersMethodfetchTopic
(topicID int64, title string)
internal/tui/mail.go:370
↓ 2 callersMethodheight
height returns the number of lines the help bar occupies.
internal/tui/help.go:35
↓ 2 callersFunctionisDateArg
(s string)
internal/cmd/formatting.go:108
↓ 2 callersFunctionjournalWithEntry
()
internal/tui/journal_test.go:8
↓ 2 callersMethodloadFile
(path string, source Source)
internal/config/config.go:147
↓ 2 callersMethodmoveUp
()
internal/tui/content.go:49
↓ 2 callersFunctionnewBrowserContext
--------------------------------------------------------------------------- Browser helpers (chromedp) -----------------------------------------------
tests/smoke/helpers_test.go:249
↓ 2 callersFunctionnewModel
(sdk *hey.Client)
internal/tui/tui.go:51
↓ 2 callersFunctionnewStyles
()
internal/tui/styles.go:29
↓ 2 callersMethodnext
()
internal/tui/calendar_views.go:35
↓ 2 callersFunctionnormalizeBaseURL
normalizeBaseURL strips trailing slashes for consistent credential keys.
internal/auth/auth.go:41
↓ 2 callersFunctionparseIntArgs
(args []string)
internal/cmd/seen.go:104
↓ 2 callersFunctionparseTrixAttachment
(n *html.Node)
internal/htmlutil/htmlutil.go:96
↓ 2 callersFunctionrenderNavRow
renderNavRow draws a row of nav items with the selected one bolded. If centered is true, the row is horizontally centered within width. When items ove
internal/tui/nav.go:168
↓ 2 callersFunctionrenderTodosRibbon
(todos []models.Recording, width int)
internal/tui/calendar_views.go:777
↓ 2 callersFunctionsameDay
--- Helpers ---
internal/tui/calendar_views.go:799
↓ 2 callersMethodsaveAllToFile
(all map[string]*Credentials)
internal/auth/store.go:132
↓ 2 callersMethodsaveToKeyring
(origin string, creds *Credentials)
internal/auth/store.go:104
↓ 2 callersMethodsetSize
(w, h int)
internal/tui/content.go:44
↓ 2 callersFunctionsortedKeys
(m map[string]any)
internal/output/writer.go:254
↓ 2 callersFunctiontestRecordings
()
internal/tui/calendar_test.go:17
↓ 2 callersFunctiontruncOutput
(s string, max int)
tests/smoke/helpers_test.go:451
↓ 2 callersFunctionusageMinOneArg
()
internal/cmd/args.go:36
↓ 2 callersFunctionvalidateSameOrigin
validateSameOrigin checks that targetURL has the same scheme and host as baseURL.
internal/cmd/box.go:218
↓ 2 callersFunctionwalkNode
(b *strings.Builder, n *html.Node)
internal/htmlutil/htmlutil.go:39
↓ 1 callersFunctionAsError
(err error)
internal/apierr/apierr.go:99
↓ 1 callersMethodAuthenticateRequest
AuthenticateRequest sets the appropriate auth header on an HTTP request. Uses Bearer token if available, otherwise falls back to session cookie.
internal/auth/auth.go:85
↓ 1 callersFunctionErrAPI
(status int, msg string)
internal/apierr/apierr.go:82
↓ 1 callersFunctionErrAmbiguous
(resource string, matches []string)
internal/apierr/apierr.go:91
↓ 1 callersFunctionErrForbidden
(msg string)
internal/apierr/apierr.go:52
↓ 1 callersFunctionErrNetwork
(cause error)
internal/apierr/apierr.go:73
↓ 1 callersFunctionErrRateLimit
(retryAfter int)
internal/apierr/apierr.go:60
↓ 1 callersFunctionExecute
()
internal/cmd/root.go:145
↓ 1 callersFunctionLoadOld
LoadOld reads the config file as the old format (with embedded credentials). Used only during migration.
internal/config/config.go:209
← previousnext →101–200 of 651, ranked by callers