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
//! Shared printer-config assembly for `format` and `pretty`.
//!
//! Both commands take the same overrides (`--preamble-align-column`,
//! `--indent`) on top of the user's `.rpmspec.toml`. The only place
//! they diverge is the **floor** on indent (pretty defaults to 2 for
//! display-mode readability; format respects the config value
//! verbatim) — that's handled by the caller after this helper runs.
use PrinterConfig;
use FormatConfig;
/// Apply the `--preamble-align-column` and `--indent` CLI overrides
/// on top of the analyzer's `FormatConfig`. Returns a fully-resolved
/// `PrinterConfig`. Callers may still post-process (e.g. apply a
/// display-mode indent floor).