mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 09:50:34 +01:00
Move filter up from internal
This commit is contained in:
parent
5c27ab1a06
commit
9f738ad995
6 changed files with 5 additions and 8 deletions
|
@ -4,7 +4,6 @@ use std::ffi::{OsStr, OsString};
|
||||||
use regex_syntax::hir::Hir;
|
use regex_syntax::hir::Hir;
|
||||||
use regex_syntax::ParserBuilder;
|
use regex_syntax::ParserBuilder;
|
||||||
|
|
||||||
pub mod filter;
|
|
||||||
pub mod opts;
|
pub mod opts;
|
||||||
|
|
||||||
macro_rules! print_error {
|
macro_rules! print_error {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::exec::CommandTemplate;
|
use crate::exec::CommandTemplate;
|
||||||
use crate::filetypes::FileTypes;
|
use crate::filetypes::FileTypes;
|
||||||
use crate::internal::filter::{SizeFilter, TimeFilter};
|
use crate::filter::{SizeFilter, TimeFilter};
|
||||||
use lscolors::LsColors;
|
use lscolors::LsColors;
|
||||||
use regex::bytes::RegexSet;
|
use regex::bytes::RegexSet;
|
||||||
use std::{path::PathBuf, sync::Arc, time::Duration};
|
use std::{path::PathBuf, sync::Arc, time::Duration};
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -5,7 +5,8 @@ mod app;
|
||||||
mod exec;
|
mod exec;
|
||||||
mod exit_codes;
|
mod exit_codes;
|
||||||
mod filetypes;
|
mod filetypes;
|
||||||
pub mod fshelper;
|
mod filter;
|
||||||
|
mod fshelper;
|
||||||
mod output;
|
mod output;
|
||||||
mod walk;
|
mod walk;
|
||||||
|
|
||||||
|
@ -22,11 +23,8 @@ use regex::bytes::{RegexBuilder, RegexSetBuilder};
|
||||||
|
|
||||||
use crate::exec::CommandTemplate;
|
use crate::exec::CommandTemplate;
|
||||||
use crate::filetypes::FileTypes;
|
use crate::filetypes::FileTypes;
|
||||||
use crate::internal::{
|
use crate::filter::{SizeFilter, TimeFilter};
|
||||||
filter::{SizeFilter, TimeFilter},
|
use crate::internal::{opts::FdOptions, pattern_has_uppercase_char, transform_args_with_exec};
|
||||||
opts::FdOptions,
|
|
||||||
pattern_has_uppercase_char, transform_args_with_exec,
|
|
||||||
};
|
|
||||||
|
|
||||||
// We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/481
|
// We use jemalloc for performance reasons, see https://github.com/sharkdp/fd/pull/481
|
||||||
#[cfg(all(not(windows), not(target_env = "musl")))]
|
#[cfg(all(not(windows), not(target_env = "musl")))]
|
||||||
|
|
Loading…
Reference in a new issue