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
↓ 4 callers
Function
renderImagePlaceholder
renderImagePlaceholder returns U+10EEEE characters with combining diacritics that encode image position for Kitty's unicode placeholder rendering.
internal/tui/kitty.go:69
↓ 4 callers
Function
renderRule
--- Rendering --- renderRule draws a horizontal rule with a centered label: ——————————————————— label ———————————————————
internal/tui/nav.go:151
↓ 4 callers
Function
runSeen
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/seen_test.go:47
↓ 4 callers
Function
runUnseen
(t *testing.T, server *httptest.Server, args ...string)
internal/cmd/seen_test.go:71
↓ 4 callers
Function
testCalendars
()
internal/tui/calendar_test.go:10
↓ 4 callers
Function
unwrapCalendars
--- Calendar helpers --- unwrapCalendars extracts []generated.Calendar from a CalendarListPayload.
internal/cmd/sdk.go:143
↓ 4 callers
Function
walkChildren
(b *strings.Builder, n *html.Node)
internal/htmlutil/htmlutil.go:120
↓ 3 callers
Method
AccessToken
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 callers
Function
ConfigDir
()
internal/config/config.go:54
↓ 3 callers
Method
EffectiveFormat
()
internal/output/writer.go:48
↓ 3 callers
Function
ExitCodeFor
(err error)
internal/output/codes.go:17
↓ 3 callers
Function
Open
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 callers
Function
ParseTopicEntriesHTML
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 callers
Method
Save
()
internal/config/config.go:224
↓ 3 callers
Method
UsingKeyring
UsingKeyring returns true if the store is using the system keyring.
internal/auth/store.go:231
↓ 3 callers
Function
browserPageText
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 callers
Function
cleanUseLine
(useLine string)
internal/cmd/args.go:46
↓ 3 callers
Method
credentialsPath
()
internal/auth/store.go:112
↓ 3 callers
Function
extractIDFromMap
extractIDFromMap tries to get an "id" field from a map as a string.
tests/smoke/todo_test.go:126
↓ 3 callers
Function
extractImageURLs
(s string)
internal/tui/html.go:9
↓ 3 callers
Method
fetchJournalEntry
--- Fetch command ---
internal/tui/journal.go:135
↓ 3 callers
Function
generateJournalDates
--- Journal date generation ---
internal/tui/journal.go:166
↓ 3 callers
Function
getAttr
(n *html.Node, key string)
internal/htmlutil/htmlutil.go:111
↓ 3 callers
Function
globalConfigPath
()
internal/config/config.go:87
↓ 3 callers
Method
handleBoxShortcut
handleBoxShortcut handles number-key shortcuts for switching boxes.
internal/tui/mail.go:218
↓ 3 callers
Function
htmlToText
(s string)
internal/tui/html.go:5
↓ 3 callers
Function
imageDimensions
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 callers
Function
key
(origin string)
internal/auth/store.go:60
↓ 3 callers
Function
listPersonalRecordings
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 callers
Function
mockFetcher
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 callers
Method
moveDown
()
internal/tui/content.go:56
↓ 3 callers
Function
orderBoxes
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 callers
Method
refreshLocked
(ctx context.Context, creds *Credentials)
internal/auth/auth.go:233
↓ 3 callers
Function
runJournalRead
--- Journal read tests ---
internal/cmd/journal_test.go:171
↓ 3 callers
Method
selectedPosting
()
internal/tui/content.go:76
↓ 3 callers
Method
setPostings
(postings []models.Posting)
internal/tui/content.go:38
↓ 3 callers
Function
spinnerTick
spinnerTick returns a command that ticks every 50ms for the loading animation.
internal/tui/loading.go:137
↓ 3 callers
Method
switchSection
(sec section)
internal/tui/tui.go:296
↓ 3 callers
Function
testModel
--- Test helpers ---
internal/tui/tui_test.go:15
↓ 3 callers
Function
toMap
(item any)
internal/output/writer.go:237
↓ 3 callers
Function
toSlice
(data any)
internal/output/writer.go:217
↓ 3 callers
Function
truncate
(s string, maxWidth int)
internal/cmd/formatting.go:85
↓ 3 callers
Function
usageErrorf
(format string, args ...any)
internal/cmd/args.go:18
↓ 3 callers
Function
validateBaseURL
(base string)
internal/config/config.go:242
↓ 3 callers
Method
view
()
internal/tui/help.go:43
↓ 3 callers
Method
writeQuiet
(data any)
internal/output/writer.go:114
↓ 2 callers
Function
ErrAuth
(msg string)
internal/apierr/apierr.go:43
↓ 2 callers
Function
ErrNotFound
(resource, identifier string)
internal/apierr/apierr.go:35
↓ 2 callers
Method
Login
Login initiates the browser-based OAuth login flow with PKCE.
internal/auth/auth.go:141
↓ 2 callers
Method
LoginWithToken
LoginWithToken stores a pre-provided bearer token.
internal/auth/auth.go:193
↓ 2 callers
Function
NewManager
NewManager creates a new auth manager.
internal/auth/auth.go:32
↓ 2 callers
Function
NewStore
NewStore creates a credential store. Keyring availability is probed lazily on first credential operation, not at construction time.
internal/auth/store.go:36
↓ 2 callers
Function
NormalizeJSONNumbers
(data []byte)
internal/output/writer.go:324
↓ 2 callers
Method
ResolveTopicID
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 callers
Function
Run
Run starts the TUI program.
internal/tui/tui.go:372
↓ 2 callers
Function
assertNotContains
(t *testing.T, haystack, needle string)
tests/smoke/helpers_test.go:444
↓ 2 callers
Function
boxTruncationNotice
boxTruncationNotice returns a user-facing notice about truncated or paginated results.
internal/cmd/box.go:269
↓ 2 callers
Function
centerPad
(s string, width int)
internal/tui/calendar_views.go:820
↓ 2 callers
Function
cliEnv
cliEnv returns the environment variables used for all CLI invocations.
tests/smoke/helpers_test.go:173
↓ 2 callers
Function
createTestHabit
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 callers
Function
dayLabelOrDefault
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 callers
Function
deleteTestHabit
deleteTestHabit deletes a habit via the Rails API.
tests/smoke/habit_test.go:91
↓ 2 callers
Method
ensureVisible
()
internal/tui/content.go:63
↓ 2 callers
Function
eventsByDate
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 callers
Function
extractEmails
(html string)
internal/htmlutil/entries.go:55
↓ 2 callers
Function
fetchImageData
(imgURL string)
internal/tui/tui.go:351
↓ 2 callers
Method
fetchTopic
(topicID int64, title string)
internal/tui/mail.go:370
↓ 2 callers
Method
height
height returns the number of lines the help bar occupies.
internal/tui/help.go:35
↓ 2 callers
Function
isDateArg
(s string)
internal/cmd/formatting.go:108
↓ 2 callers
Function
journalWithEntry
()
internal/tui/journal_test.go:8
↓ 2 callers
Method
loadFile
(path string, source Source)
internal/config/config.go:147
↓ 2 callers
Method
moveUp
()
internal/tui/content.go:49
↓ 2 callers
Function
newBrowserContext
--------------------------------------------------------------------------- Browser helpers (chromedp) -----------------------------------------------
tests/smoke/helpers_test.go:249
↓ 2 callers
Function
newModel
(sdk *hey.Client)
internal/tui/tui.go:51
↓ 2 callers
Function
newStyles
()
internal/tui/styles.go:29
↓ 2 callers
Method
next
()
internal/tui/calendar_views.go:35
↓ 2 callers
Function
normalizeBaseURL
normalizeBaseURL strips trailing slashes for consistent credential keys.
internal/auth/auth.go:41
↓ 2 callers
Function
parseIntArgs
(args []string)
internal/cmd/seen.go:104
↓ 2 callers
Function
parseTrixAttachment
(n *html.Node)
internal/htmlutil/htmlutil.go:96
↓ 2 callers
Function
renderNavRow
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 callers
Function
renderTodosRibbon
(todos []models.Recording, width int)
internal/tui/calendar_views.go:777
↓ 2 callers
Function
sameDay
--- Helpers ---
internal/tui/calendar_views.go:799
↓ 2 callers
Method
saveAllToFile
(all map[string]*Credentials)
internal/auth/store.go:132
↓ 2 callers
Method
saveToKeyring
(origin string, creds *Credentials)
internal/auth/store.go:104
↓ 2 callers
Method
setSize
(w, h int)
internal/tui/content.go:44
↓ 2 callers
Function
sortedKeys
(m map[string]any)
internal/output/writer.go:254
↓ 2 callers
Function
testRecordings
()
internal/tui/calendar_test.go:17
↓ 2 callers
Function
truncOutput
(s string, max int)
tests/smoke/helpers_test.go:451
↓ 2 callers
Function
usageMinOneArg
()
internal/cmd/args.go:36
↓ 2 callers
Function
validateSameOrigin
validateSameOrigin checks that targetURL has the same scheme and host as baseURL.
internal/cmd/box.go:218
↓ 2 callers
Function
walkNode
(b *strings.Builder, n *html.Node)
internal/htmlutil/htmlutil.go:39
↓ 1 callers
Function
AsError
(err error)
internal/apierr/apierr.go:99
↓ 1 callers
Method
AuthenticateRequest
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 callers
Function
ErrAPI
(status int, msg string)
internal/apierr/apierr.go:82
↓ 1 callers
Function
ErrAmbiguous
(resource string, matches []string)
internal/apierr/apierr.go:91
↓ 1 callers
Function
ErrForbidden
(msg string)
internal/apierr/apierr.go:52
↓ 1 callers
Function
ErrNetwork
(cause error)
internal/apierr/apierr.go:73
↓ 1 callers
Function
ErrRateLimit
(retryAfter int)
internal/apierr/apierr.go:60
↓ 1 callers
Function
Execute
()
internal/cmd/root.go:145
↓ 1 callers
Function
LoadOld
LoadOld reads the config file as the old format (with embedded credentials). Used only during migration.
internal/config/config.go:209
← previous
next →
101–200 of 651, ranked by callers