1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 11:52:26 +01:00

Add option --binary

`--binary` allows to specify how to deal with binary content. Current
options are not printing anything or treating the binary data as text.
This commit is contained in:
einfachIrgendwer0815
2024-05-31 18:20:16 +02:00
parent b662fec214
commit 7f089ead62
8 changed files with 63 additions and 6 deletions

View File

@@ -10,3 +10,15 @@ pub enum NonprintableNotation {
#[default]
Unicode,
}
/// How to treat binary content
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum BinaryBehavior {
/// Do not print any binary content
#[default]
NoPrinting,
/// Treat binary content as normal text
AsText,
}