Refactored

This commit is contained in:
specCon18 2023-08-30 10:19:59 -04:00
parent c74f191ed3
commit 88ba148efd

View file

@ -1,10 +1,7 @@
use clap::{App, Arg}; use clap::{App, Arg};
use crossterm::style::{Color, Print, ResetColor, SetForegroundColor}; use crossterm::style::{Color, Print, ResetColor, SetForegroundColor,ExecutableCommand};
use crossterm::ExecutableCommand;
use indicatif::{ProgressBar, ProgressStyle}; use indicatif::{ProgressBar, ProgressStyle};
use std::io::stdout; use std::{io::stdout, path::Path, process::Command};
use std::path::Path;
use std::process::Command;
fn main() -> color_eyre::eyre::Result<()> { fn main() -> color_eyre::eyre::Result<()> {
color_eyre::install()?; color_eyre::install()?;
@ -16,7 +13,6 @@ fn main() -> color_eyre::eyre::Result<()> {
.help("Files to be extracted"), .help("Files to be extracted"),
); );
use rayon::prelude::*;
let matches = app.get_matches(); let matches = app.get_matches();
let files: Vec<_> = matches.values_of("files").unwrap().collect(); let files: Vec<_> = matches.values_of("files").unwrap().collect();
let pb = ProgressBar::new(files.len() as u64); let pb = ProgressBar::new(files.len() as u64);