2 releases
0.1.1 | Feb 1, 2025 |
---|---|
0.1.0 | Feb 1, 2025 |
#97 in Cargo plugins
274 downloads per month
11KB
153 lines
Cargo Project Finder
Cargo Project Finder is a CLI tool designed to recursively find Cargo projects in directories. This tool is particularly useful for developers working with multiple Rust projects, allowing them to quickly locate and manage their Cargo projects.
Features
- Recursively search directories for Cargo projects.
- Option to skip hidden files and directories.
- Output results to a JSON file.
- Display results in a table format.
- Works on Unix and Windows operating systems.
Installation
To install Cargo Project Finder, you need to have Rust and Cargo installed. Then, you can build the project using Cargo:
git clone https://github.com/ahmetoozcan/cargo-project-finder.git
cd cargo-project-finder
cargo build --release
Or you can install the cli tool globally using Cargo:
cargo install cargo-project-finder
Usage
You can use Cargo Project Finder by running the following command:
cargo-project-finder [OPTIONS]
Options
-o, --output <FILE>
: Write output to a JSON file (defaults tocargo_projects
).-p, --path <DIR>
: Directory to search (defaults to home directory).-n, --noskip
: Don't skip hidden files and directories (will take some time).
Examples
Search the home directory for Cargo projects and output the results to a JSON file:
cargo-project-finder --output projects
Search a specific directory for Cargo projects without skipping hidden files (This will take time):
cargo-project-finder --path /path/to/directory --noskip
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
Author
Ahmet Özcan - ahmetozcan21@yahoo.com
Dependencies
~4–18MB
~168K SLoC