mirror of
https://github.com/sharkdp/fd.git
synced 2024-11-18 09:50:34 +01:00
rename Option to Config
This commit is contained in:
parent
b6f8bc8ff8
commit
a4a4709320
1 changed files with 3 additions and 3 deletions
|
@ -5,8 +5,8 @@ use std::sync::{Arc, Mutex};
|
||||||
use crate::error::print_error;
|
use crate::error::print_error;
|
||||||
use crate::exit_codes::{merge_exitcodes, ExitCode};
|
use crate::exit_codes::{merge_exitcodes, ExitCode};
|
||||||
use crate::walk::WorkerResult;
|
use crate::walk::WorkerResult;
|
||||||
use crate::options::Options;
|
|
||||||
use crate::filesystem::strip_current_dir;
|
use crate::filesystem::strip_current_dir;
|
||||||
|
use crate::config::Config;
|
||||||
|
|
||||||
use super::CommandTemplate;
|
use super::CommandTemplate;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ pub fn job(
|
||||||
out_perm: Arc<Mutex<()>>,
|
out_perm: Arc<Mutex<()>>,
|
||||||
show_filesystem_errors: bool,
|
show_filesystem_errors: bool,
|
||||||
buffer_output: bool,
|
buffer_output: bool,
|
||||||
config: &Arc<Options>,
|
config: &Arc<Config>,
|
||||||
) -> ExitCode {
|
) -> ExitCode {
|
||||||
let mut results: Vec<ExitCode> = Vec::new();
|
let mut results: Vec<ExitCode> = Vec::new();
|
||||||
loop {
|
loop {
|
||||||
|
@ -58,7 +58,7 @@ pub fn batch(
|
||||||
cmd: &CommandTemplate,
|
cmd: &CommandTemplate,
|
||||||
show_filesystem_errors: bool,
|
show_filesystem_errors: bool,
|
||||||
buffer_output: bool,
|
buffer_output: bool,
|
||||||
config: &Arc<Options>,
|
config: &Arc<Config>,
|
||||||
) -> ExitCode {
|
) -> ExitCode {
|
||||||
let paths = rx.iter().filter_map(|value| match value {
|
let paths = rx.iter().filter_map(|value| match value {
|
||||||
WorkerResult::Entry(val) => Some(val),
|
WorkerResult::Entry(val) => Some(val),
|
||||||
|
|
Loading…
Reference in a new issue