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
/// Content specification: raw text input, unstructured.
///
/// This struct holds the full source text before any parsing.
/// It's the entry point for content-level rendering.
///
/// Used by: tokenizer, layout generator, renderer, etc.
/// Logical units extracted from script-mode text input.
///
/// This enum represents building blocks of a CLI "story":
///
/// - [`Prompt`] → e.g. `"user@host:~$"` shell prompt;
/// - [`Command`] → e.g. `"ls -al"` typed command;
/// - [`Output`] → e.g. `["file1", "file2", ...]` rendered result.
///
/// Used internally during parsing and grouping stages.
pub
/// Grouped command entry with associated I/O segments.
///
/// This struct bundles together the prompt, command, and
/// its corresponding output lines as a single renderable block.
///
/// It is the core abstraction unit used in `script` mode playback.