(apiClient client.APIClient, opts *logsOptions, padding int)
| 195 | } |
| 196 | |
| 197 | func newTaskFormatter(apiClient client.APIClient, opts *logsOptions, padding int) *taskFormatter { |
| 198 | return &taskFormatter{ |
| 199 | client: apiClient, |
| 200 | opts: opts, |
| 201 | padding: padding, |
| 202 | r: idresolver.New(apiClient, opts.noResolve), |
| 203 | cache: make(map[logContext]string), |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | func (f *taskFormatter) format(ctx context.Context, logCtx logContext) (string, error) { |
| 208 | if cached, ok := f.cache[logCtx]; ok { |
no outgoing calls
no test coverage detected
searching dependent graphs…