Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

folder-find

Visit each folder in the root directory non recursively and execute the specified command. Print the folder name if the command exit with status 0

Usage: folder-find [OPTIONS] <COMMAND>...

Arguments:
  <COMMAND>...  The command to execute

Options:
  -d, --directory <DIR>     Specify root directory [default: .]
  -i, --invert              List folders for which the command returned anything but 0
      --debug...            Print debug information
  -t, --threads <THREADS>   Number of threads to use, use rayon default if not specified [default: 0]
  -e, --ignore-warnings     Ignore stderr from the command
      --completion <SHELL>  Generate completion for the specified shell and exit [possible values: bash, elvish, fish, powershell, zsh]
  -h, --help                Print help
  -V, --version             Print version

Install

cargo install --git https://github.com/attiand/folderfind.git

Examples

List repos that use the maven dep org.apache.commons. Specifying the path ('.') avoids a warning from ripgrep.

folder-find rg -q -tmaven org.apache.commons .

About

Visit each folder in the root directory and execute the specified command. Print the folder name if the command exit with status 0

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages