MCPcopy
hub / github.com/docker/compose / addTask

Function addTask

cmd/display/tty_test.go:47–59  ·  view source on GitHub ↗
(w *ttyWriter, id, text, details string, status api.EventStatus)

Source from the content-addressed store, hash-verified

45}
46
47func 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
62func extractLines(buf *bytes.Buffer) []string {

Calls 1

NewSpinnerFunction · 0.85

Tested by

no test coverage detected