this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: remove the unused extract command

-15
-15
src/main.rs
··· 23 23 /// tar archive format 24 24 Tar(TarArgs), 25 25 26 - /// extract by guessing the format 27 - Extract(ExtractArgs), 28 - 29 26 /// gzip compression 30 27 #[clap(visible_alias = "gz")] 31 28 Gzip(GzipArgs), 32 29 33 30 /// xz compression 34 31 Xz(XzArgs), 35 - } 36 - 37 - #[derive(Args, Debug)] 38 - struct ExtractArgs { 39 - /// Input/Output file/directory 40 - #[arg(index = 1)] 41 - input: Option<String>, 42 - 43 - /// Output file/directory 44 - #[arg(index = 2)] 45 - output: Option<String>, 46 32 } 47 33 48 34 #[derive(Args, Debug)] ··· 297 283 let args = CmprssArgs::parse(); 298 284 match args.format { 299 285 Some(Format::Tar(a)) => command(parse_tar(&a), &a.common_args), 300 - //Some(Format::Extract(a)) => command_extract(a), 301 286 Some(Format::Gzip(a)) => command(parse_gzip(&a), &a.common_args), 302 287 Some(Format::Xz(a)) => command(parse_xz(&a), &a.common_args), 303 288 _ => Err(io::Error::new(io::ErrorKind::Other, "unknown input")),