MCPcopy Create free account
hub / github.com/basecamp/hey-cli / fetchJournalEntry

Method fetchJournalEntry

internal/tui/journal.go:135–162  ·  view source on GitHub ↗

--- Fetch command ---

(date string)

Source from the content-addressed store, hash-verified

133 nextPage string
134 loadingMore bool
135 moreID uint64
136 liveID uint64
137
138 detailDate string
139 detailContent string
140 detailBody htmlutil.Markdown
141 detailView viewport.Model
142 inDetail bool
143 form *journalForm
144 prompt *journalPrompt
145 confirmRemove bool
146 selectDate string
147
148 requests requestLane[journalRequestKind]
149}
150
151func newJournalView(vc *viewContext) *journalView {
152 return &journalView{
153 vc: vc,
154 detailView: viewport.New(viewport.WithWidth(0), viewport.WithHeight(0)),
155 }
156}
157
158func (v *journalView) Init() tea.Cmd {
159 if v.loaded {
160 return nil
161 }
162 return v.requestFeed("")
163}
164
165func (v *journalView) Update(msg tea.Msg) (tea.Cmd, bool) {

Callers 3

InitMethod · 0.95
SubnavLeftMethod · 0.95
SubnavRightMethod · 0.95

Calls 3

htmlToTextFunction · 0.85
extractImageURLsFunction · 0.85
fetchImageDataFunction · 0.85

Tested by

no test coverage detected