raphaelmansuy / code2prompt

Code2Prompt is a powerful command-line tool that simplifies the process of providing context to Large Language Models (LLMs) by generating a comprehensive Markdown file containing the content of your codebase. ⭐ If you find Code2Prompt useful, consider giving us a star on GitHub! It helps us reach more developers and improve the tool. ⭐
MIT License
570 stars 29 forks source link

--exclude is not exluding #5

Closed yazoooo closed 4 months ago

yazoooo commented 4 months ago

BTW. Really helpful tool! It does exactly what I want. I pushed this all into gemini 1.5 flash and it was able to discuss my project intelligently.

I have tried specifying the --exclude in both the command line and inside the configuration file. I also also tried both formats in the examples "/tests/" and "tests/*.

{ "suppress_comments": true, "line_number": true, "encoding": "cl100k_base", "filter": ".py,.js", "exclude": "tests/,prototypes/", "tokens": true }

(hals-pen-py3.10) yazoooo@yazoooo-dev:~/PycharmProjects/hals-pen$ code2prompt --output code2prompt.txt --gitignore .gitignore --tokens --path .

Beginning of output Table of Contents

raphaelmansuy commented 4 months ago

The issue is fixed in version 0.6.7

Reinstall using pipx install code2prompt --force