(w *ttyWriter, id, text, details string, status api.EventStatus)
| 45 | } |
| 46 | |
| 47 | func addTask(w *ttyWriter, id, text, details string, status api.EventStatus) { |
| 48 | t := &task{ |
| 49 | ID: id, |
| 50 | parents: make(map[string]struct{}), |
| 51 | startTime: time.Now(), |
| 52 | text: text, |
| 53 | details: details, |
| 54 | status: status, |
| 55 | spinner: NewSpinner(), |
| 56 | } |
| 57 | w.tasks[id] = t |
| 58 | w.ids = append(w.ids, id) |
| 59 | } |
| 60 | |
| 61 | // extractLines parses the output buffer and returns lines without ANSI control sequences |
| 62 | func extractLines(buf *bytes.Buffer) []string { |
no test coverage detected