1
0
mirror of https://github.com/sharkdp/bat.git synced 2026-02-08 08:42:08 +00:00

feat(pipe-style): make output pipeable (any style)

This commit is contained in:
Louis Maddox
2025-10-16 13:27:11 +01:00
parent f1a0d8b3f7
commit 7eedc0f854
3 changed files with 81 additions and 1 deletions

View File

@@ -276,7 +276,9 @@ impl App {
.get_one::<String>("decorations")
.map(|s| s.as_str())
== Some("always")
|| self.matches.get_flag("force-colorization")),
|| self.matches.get_flag("force-colorization")
|| self.matches.get_flag("number")
|| self.matches.contains_id("style") && !style_components.plain()),
tab_width: self
.matches
.get_one::<String>("tabs")