@@ -23,16 +23,35 @@ pub enum PagingMode {
2323}
2424
2525pub struct Config<'a> {
26− pub true_color: bool,
27− pub output_wrap: OutputWrap,
28− pub output_components: OutputComponents,
26+ /// List of files to print
27+ pub files: Vec<Option<&'a str>>,
28+
29+ /// The explicitly configured language, if any
2930 pub language: Option<&'a str>,
31+
32+ /// The character width of the terminal
33+ pub term_width: usize,
34+
35+ /// Whether or not the output should be colorized
3036 pub colored_output: bool,
37+
38+ /// Whether or not the output terminal supports true color
39+ pub true_color: bool,
40+
41+ /// Style elements (grid, line numbers, ...)
42+ pub output_components: OutputComponents,
43+
44+ /// Text wrapping mode
45+ pub output_wrap: OutputWrap,
46+
47+ /// Pager or STDOUT
3148 pub paging_mode: PagingMode,
32− pub term_width: usize,
33− pub files: Vec<Option<&'a str>>,
34− pub theme: String,
49+
50+ /// The range lines that should be printed, if specified
3551 pub line_range: Option<LineRange>,
52+
53+ /// The syntax highlighting theme
54+ pub theme: String,
3655}
3756
3857fn is_truecolor_terminal() -> bool {