(cfg config)
| 140 | } |
| 141 | |
| 142 | func writeEmptyOutputs(cfg config) error { |
| 143 | if cfg.FailuresOut != "" { |
| 144 | if err := os.WriteFile(cfg.FailuresOut, nil, 0o600); err != nil { |
| 145 | return err |
| 146 | } |
| 147 | } |
| 148 | if cfg.MarkdownOut != "" && cfg.MarkdownOut != "-" { |
| 149 | return os.WriteFile(cfg.MarkdownOut, nil, 0o600) |
| 150 | } |
| 151 | return nil |
| 152 | } |
| 153 | |
| 154 | func summarize(ctx context.Context, r io.Reader, maxOutputBytes int, stderr io.Writer) (summary, error) { |
| 155 | reader := bufio.NewReader(r) |