MCPcopy Create free account
hub / github.com/cli/cli / shouldFetchJobs

Function shouldFetchJobs

pkg/cmd/run/view/view.go:478–488  ·  view source on GitHub ↗
(opts *ViewOptions)

Source from the content-addressed store, hash-verified

476}
477
478func shouldFetchJobs(opts *ViewOptions) bool {
479 if opts.Prompt {
480 return true
481 }
482 if opts.Exporter != nil {
483 if slices.Contains(opts.Exporter.Fields(), "jobs") {
484 return true
485 }
486 }
487 return false
488}
489
490func getLog(httpClient *http.Client, hostname string, logPath safeurl.SafeURL) (io.ReadCloser, error) {
491 // The response body is the log archive, which is handed to the caller rather than decoded.

Callers 1

runViewFunction · 0.85

Calls 2

ContainsMethod · 0.80
FieldsMethod · 0.65

Tested by

no test coverage detected