filetypes.rs
This file
Path
src/filetypes.rs
24 lines · 535 bytes · Rust
Last changed by
Add new `--type socket` and `--type pipe` filterssharkdpbefore adoptioncb56add
History of this fileTake it
Move filetypes up from 'internal'sharkdpbefore adoption5c27ab1
lines 1–5why, one step back1/// Whether or not to show2pub struct FileTypes {3 pub files: bool,4 pub directories: bool,5 pub symlinks: bool,Add new `--type socket` and `--type pipe` filterssharkdpbefore adoptioncb56add
lines 6–7why, one step back6 pub sockets: bool,7 pub pipes: bool,Move filetypes up from 'internal'sharkdpbefore adoption5c27ab1
lines 8–17why, one step back8 pub executables_only: bool,9 pub empty_only: bool,10}1112impl Default for FileTypes {13 fn default() -> FileTypes {14 FileTypes {15 files: false,16 directories: false,17 symlinks: false,Add new `--type socket` and `--type pipe` filterssharkdpbefore adoptioncb56add
lines 18–19why, one step back18 sockets: false,19 pipes: false,Move filetypes up from 'internal'sharkdpbefore adoption5c27ab1
lines 20–24why, one step back20 executables_only: false,21 empty_only: false,22 }23 }24}