MCPcopy Index your code
hub / github.com/cli/cli / forStep

Method forStep

pkg/cmd/run/view/logs.go:172–176  ·  view source on GitHub ↗
(jobID int64, stepNumber int)

Source from the content-addressed store, hash-verified

170}
171
172func (l *zipLogMap) forStep(jobID int64, stepNumber int) (*zip.File, bool) {
173 logFetcherKey := fmt.Sprintf("%d/%d", jobID, stepNumber)
174 f, ok := l.steps[logFetcherKey]
175 return f, ok
176}
177
178func (l *zipLogMap) addStep(jobID int64, stepNumber int, zf *zip.File) {
179 logFetcherKey := fmt.Sprintf("%d/%d", jobID, stepNumber)

Callers 2

populateLogSegmentsFunction · 0.80
TestGetZipLogMapFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestGetZipLogMapFunction · 0.64