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

I want to override the .gitignore settings and output #28

Closed yasainet closed 2 weeks ago

yasainet commented 1 month ago

.gitignore contains /node_modules, .env, etc. I want to exclude /node_modules as is, but include .env in the output.

For example, to ensure that Claude and ChatGPT understand when .env is present, as shown below.

My rule of thumb is that strictly directing the location of files when interacting with AI makes development go very smoothly.

So, you need to read .env only when running code2prompt. Is there a good way to do this?