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

Function shouldFetchJobs

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

Source from the content-addressed store, hash-verified

473}
474
475func shouldFetchJobs(opts *ViewOptions) bool {
476 if opts.Prompt {
477 return true
478 }
479 if opts.Exporter != nil {
480 if slices.Contains(opts.Exporter.Fields(), "jobs") {
481 return true
482 }
483 }
484 return false
485}
486
487func getLog(httpClient *http.Client, hostname string, logPath safeurl.SafeURL) (io.ReadCloser, error) {
488 // 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