1mod fd;
6mod rg;
7
8pub const GLOB_BLACKLIST: [&str; 7] = [
10 "**/.git/*",
11 "**/target/*",
12 "**/target-*/*",
13 "**/_build/*",
14 "**/deps/*",
15 "**/.elixir_ls/*",
16 "**/node_modules/*",
17];
18
19pub trait CliFlags {
21 fn base_flags() -> Vec<&'static str>;
23
24 fn glob_flag(glob: &str) -> String;
26
27 fn get((): ()) -> Vec<String> {
29 Self::base_flags()
30 .into_iter()
31 .map(Into::into)
32 .chain(GLOB_BLACKLIST.into_iter().map(Self::glob_flag))
33 .collect::<Vec<_>>()
34 }
35}
36
37pub fn get_fd_flags((): ()) -> Vec<String> {
39 fd::FdCliFlags::get(())
40}
41
42pub fn get_rg_flags((): ()) -> Vec<String> {
44 rg::RgCliFlags::get(())
45}