finders

Crates.iofinders
lib.rsfinders
version2.0.1
created_at2025-04-09 09:36:07.966381+00
updated_at2025-04-28 06:21:13.289706+00
description A tool to shortcut the find command
homepage
repositoryhttps://github.com/ydkadri/finders
max_upload_size
id1626466
size23,547
Youcef Kadri (ydkadri)

documentation

README

FindeRS

A tool to replace the complex bash find logic which searches for files (optionally) containing some string or regular expression pattern.

The challenge

Finding files containing some string is a common use case in the shell, however the command is cumbersome:

# Bash command
find <dir> \
    -type f \
    -name <file pattern> \
    -exec grep -iH <search pattern> {} \;

Instead, finders provides a lightweight wrapper for this common command.

Installation

FindeRS can be found on crates.io and as such can be installed with

cargo install finders

Usage

Usage: finder [OPTIONS] [PATH]

Arguments:
  [PATH]  Optional path to operate on, defaults to CWD

Options:
  -f, --file-pattern <FILE_PATTERN>      File pattern to filter results
  -s, --search-pattern <SEARCH_PATTERN>  Search pattern to match in result files
  -r, --regex-pattern <REGEX_PATTERN>    Regex pattern to match in result files
  -i, --case-insensitive                 Flag for case insensitive search
  -v, --verbose                          Verbose output details unreadable files
  -h, --help                             Print help
  -V, --version                          Print version

TODO

  • release pipeline
  • validate lockfile before merge (build will update this but causes publish issues)

References

Commit count: 15

cargo fmt