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
//! What the engine reports, as this host presents it.
//!
//! The engine owns everything that talks to a plugin -- loading it, calling it, reading the files it
//! declared, and the hooks it logs through -- and prints nothing. This module is the other half: the
//! plugin's lines with its id, the notes worth showing, and trace detail. The declared-files provider and
//! the logging levels come straight from the engine, because their *policy* (which files, how loud) is
//! the engine's, not a rendering decision.
pub use render;
use ;
/// Whether output is JSON.
///
/// Set once from argv, before any command runs. A process-wide switch rather than a parameter because
/// the alternative is threading a mode through ten `app::` helpers that only pass it on -- and this
/// process runs one command and exits.
static JSON: AtomicBool = new;
/// Turn JSON output on. Called once, right after argv is parsed.
/// Whether the JSON mode is on.
/// One event, in whichever form the mode asks for.