https://github.com/code-inflation/proompt
https://github.com/code-inflation/proompt
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/code-inflation/proompt
- Owner: code-inflation
- License: mit
- Created: 2025-01-13T19:29:44.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-13T21:22:53.000Z (about 1 year ago)
- Last Synced: 2025-02-28T18:08:15.187Z (12 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proompt
`proompt` is a small CLI utility designed to concatenate the contents of files within specified directories into a single prompt. It supports various options for customizing file processing, including handling hidden files, ignoring specific patterns, and managing different file extensions.
## Installation
```sh
cargo install proompt
```
## Help
```sh
/proompt --help
Concatenate a directory full of files into a single prompt for use with LLMs
Usage: proompt [OPTIONS] [PATHS]...
Arguments:
[PATHS]... Paths to files or directories to process
Options:
-e, --extension Only include files with the specified extensions
--include-hidden Include hidden files and directories
--ignore-gitignore Ignore .gitignore files
--ignore Patterns to ignore
-o, --output Write output to a file
-h, --help Print help
-V, --version Print version
```
## Example Usage
Copy full repo:
```sh
proompt . | pbcopy
```
Exclude tests dir:
```sh
proompt --ignore tests/* . | pbcopy
```