on master help sign in
removed printlns, updated Changelog, updated man
commit6017989c4cb1683cc7d454d0f9175022e973ccee authorAlexander Karlis <alexanderkarlis@gmail.com> dateSat 12 Sep 2020, 00:26 (6 years ago) parentd349974
4 files changed+8−4
CHANGELOG.md+2 assets/manual/bat.1.in+6 src/bin/bat/app.rs−1 src/bin/bat/main.rs−3
CHANGELOG.md+2
@@ -4,6 +4,8 @@
44
55- Added support for the `NO_COLOR` environment variable, see #1021 and #1031 (@eth-p)
66- Added `-P` short flag to disable paging, revised man page description, see #1075 and #1082 (@LordFlashmeow)
7+- Added `--force-colorization` flag & `-f` short flag to provide an alias for forced colorization/decorization, \
8+revised man page description, see #1141 (@alexanderkarlis)
79
810## Bugfixes
911
assets/manual/bat.1.in+6
@@ -87,6 +87,12 @@ Specify when to use the decorations that have been specified via '\-\-style'. Th
8787automatic mode only enables decorations if an interactive terminal is detected. Possible
8888values: *auto*, never, always.
8989.HP
90+\fB\-f\fR, \fB\-\-force\-colorization\fR
91+.IP
92+Alias for '--decorations=always --color=always'. This is useful \
93+if the output of bat is piped to another program, but you want \
94+to keep the colorization/decorations.
95+.HP
9096\fB\-\-paging\fR <when>
9197.IP
9298Specify when to use the pager. To disable the pager, use \&'\-\-paging=never' or its alias,
src/bin/bat/app.rs−1
@@ -288,7 +288,6 @@ impl App {
288288
289289 fn style_components(&self) -> Result<StyleComponents> {
290290 let matches = &self.matches;
291− println!("{:#?}", matches);
292291 Ok(StyleComponents(
293292 if matches.value_of("decorations") == Some("never") {
294293 HashSet::new()
src/bin/bat/main.rs−3
@@ -209,7 +209,6 @@ fn run() -> Result<bool> {
209209 } else {
210210 let inputs = vec![Input::ordinary_file(OsStr::new("cache"))];
211211 let config = app.config(&inputs)?;
212− println!("{:#?}", config);
213212
214213 run_controller(inputs, &config)
215214 }
@@ -218,8 +217,6 @@ fn run() -> Result<bool> {
218217 let inputs = app.inputs()?;
219218 let config = app.config(&inputs)?;
220219
221− println!("{:#?}", config);
222−
223220 if app.matches.is_present("list-languages") {
224221 list_languages(&config)?;
225222 Ok(true)