1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Progress reporting, inverted.
//!
//! The engine calls a [`Reporter`] instead of touching the terminal. Each
//! front-end supplies its own implementation:
//! - the CLI renders steps as `spinners` lines with themed symbols,
//! - CI prints plain, timestamped lines,
//! - the server-side git receiver streams lines over the push sideband.
/// How the engine tells the outside world what it is doing.
///
/// A "step" is one unit of work (detect runner, build, upload, restart). The
/// engine brackets each with [`step_start`](Reporter::step_start) and one of
/// [`step_done`](Reporter::step_done) / [`step_fail`](Reporter::step_fail).
/// A [`Reporter`] that discards everything.
///
/// Useful for tests and for non-interactive callers that only care about the
/// final `Result`.
;