(opts *ViewOptions)
| 476 | } |
| 477 | |
| 478 | func 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 | |
| 490 | func 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. |