rename Option to Config

This commit is contained in:
Jonah Caplan 2021-10-15 23:59:47 -04:00
parent b6f8bc8ff8
commit a4a4709320

View file

@ -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),