Skip to content

--exclude does not exclude directory #154

Open
@canadaduane

Description

@canadaduane

I tried code2prompt with the --exclude param, but it did not exclude the directory I selected from input:

❯ find .
.
./docs
./docs/overview.md
./hello.ts
❯ code2prompt --exclude docs .
▹▹▹▹▸ Done!                                                                                                                                                [i] Token count: 72, Model info: ChatGPT models, text-embedding-ada-002
[✓] Copied to clipboard successfully.

When I paste the result, it shows that docs/overview.md has been included:

Project Path: test

Source Tree:
test
├── docs
│   └── overview.md
└── hello.ts


`test/docs/overview.md`:
# Overview

Important things to know.

`test/hello.ts`:
const hello = "world";

code2prompt version: 3.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions