mufeedvh / code2prompt

A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.
MIT License
1.45k stars 77 forks source link

Exclude from Source Tree #14

Closed lukeolney closed 3 months ago

lukeolney commented 4 months ago

Is it possible to add an argument so that any excluded files/folders/extensions are also excluded from the source tree?

I am currently working with some folders that have thousands of .npy files, or .wav, etc, and this means the source tree can get a little bit heavy!

Thanks for this great tool!

mufeedvh commented 3 months ago

Just implemented this! Usage:

code2prompt path/to/codebase --exclude="*.npy,*.wav" --exclude-from-tree

Thank you for the feature request! ❤️ 🙌