Explorar el Código

feat(output): add icon function to FileNameColours trait

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Sandro-Alessio Gierens hace 1 año
padre
commit
569d7750ec
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/output/file_name.rs

+ 2 - 0
src/output/file_name.rs

@@ -510,5 +510,7 @@ pub trait Colours: FiletypeColours {
     /// The style to paint a directory that has a filesystem mounted on it.
     fn mount_point(&self) -> Style;
 
+    fn icon(&self) -> Option<Style>;
+
     fn colour_file(&self, file: &File<'_>) -> Style;
 }