diff --git a/README.md b/README.md index f9edcac..e82f52b 100644 --- a/README.md +++ b/README.md @@ -96,12 +96,6 @@ the current directory. Basically, it replaces the following command: find -iname .git -type d -execdir git fetch upstream \; ``` -You can hide the command output by specifying an `-H` or `--Hide` parameter: - -```sh -Inn -H -F package.json ncu -u -``` - To specify a `--File` argument or `-F`, if you would like to search for a file instead of a directory, use: diff --git a/Source/Fn/Binary/Command.rs b/Source/Fn/Binary/Command.rs index f301f4f..044a52f 100644 --- a/Source/Fn/Binary/Command.rs +++ b/Source/Fn/Binary/Command.rs @@ -7,16 +7,6 @@ pub fn Fn() -> ArgMatches { .version(env!("CARGO_PKG_VERSION")) .author("Nikola R. Hristov ") .about("Run a command in all directories having a certain pattern.") - .arg( - Arg::new("Hide") - .short('H') - .long("Hide") - .action(SetTrue) - .display_order(1) - .value_name("HIDE") - .required(false) - .help("Hide output."), - ) .arg( Arg::new("File") .short('F') diff --git a/Source/Fn/Binary/Command/Entry.rs b/Source/Fn/Binary/Command/Entry.rs index 847b4ea..20ad657 100644 --- a/Source/Fn/Binary/Command/Entry.rs +++ b/Source/Fn/Binary/Command/Entry.rs @@ -4,6 +4,8 @@ pub fn Fn(Option { Exclude, File, Pattern, Root, Separator, .. }: &Option) -> Re .filter_map(|Entry| { let Path = Entry.expect("Cannot Entry.").path().display().to_string(); + println!("{}", Path); + // TODO: Separate this into Entry/Exclude.rs if !Exclude.clone().into_iter().filter(|Exclude| *Pattern != *Exclude).any(|Exclude| { let Match = Path.contains(&Exclude); diff --git a/Source/Struct/Binary/Command/Entry.rs b/Source/Struct/Binary/Command/Entry.rs index c3e16f8..5b62589 100644 --- a/Source/Struct/Binary/Command/Entry.rs +++ b/Source/Struct/Binary/Command/Entry.rs @@ -1,7 +1,6 @@ pub type Type = Vec>; pub struct Struct { - pub Hide: Hide, pub Command: Command, pub Entry: Type, pub Parallel: Parallel, @@ -12,7 +11,6 @@ pub struct Struct { impl Struct { pub fn Fn(Option: &Option) -> Self { Self { - Hide: Option.Hide.clone(), Command: Option.Command.clone(), Entry: crate::Fn::Binary::Command::Entry::Fn(Option), Parallel: Option.Parallel, @@ -23,5 +21,5 @@ impl Struct { } use crate::Struct::Binary::Command::Option::{ - Command, Hide, Parallel, Pattern, Separator, Struct as Option, + Command, Parallel, Pattern, Separator, Struct as Option, }; diff --git a/Source/Struct/Binary/Command/Option.rs b/Source/Struct/Binary/Command/Option.rs index 82d1dc4..5a6eae6 100644 --- a/Source/Struct/Binary/Command/Option.rs +++ b/Source/Struct/Binary/Command/Option.rs @@ -1,5 +1,5 @@ pub type Command = Vec; -pub type Hide = bool; + pub type Parallel = bool; pub type Pattern = String; pub type Separator = char; @@ -7,7 +7,7 @@ pub type Separator = char; pub struct Struct { pub Command: Command, pub Exclude: Vec, - pub Hide: Hide, + pub File: bool, pub Parallel: Parallel, pub Pattern: Pattern, @@ -18,7 +18,6 @@ pub struct Struct { impl Struct { pub fn Fn(Option { Separator, .. }: Option) -> Self { Self { - Hide: Fn().get_flag("Hide"), File: Fn().get_flag("File"), Parallel: Fn().get_flag("Parallel"), Root: Fn().get_one::("Root").expect("Cannot Root.").to_owned(),