Skip to content

Commit 3f76cac

Browse files
committed
Add explain-path text analysis command
1 parent 7316816 commit 3f76cac

3 files changed

Lines changed: 914 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,20 @@ dir2prompt [GLOBAL_OPTIONS] \
119119
dir2prompt
120120
```
121121

122+
### Explaining why a path is included or excluded
123+
124+
Use the `explain-path` subcommand to understand why specific files are included or filtered out under the current rules and CLI options:
125+
126+
```bash
127+
# Explain a single file relative to the current directory
128+
dir2prompt explain-path src/main.py
129+
130+
# Explain a path while applying a view and a type filter
131+
dir2prompt explain-path --view docs --type md docs/guide.md
132+
```
133+
134+
The command produces a Markdown explanation that walks through the universe, baseline filters, rules, and CLI constraints.
135+
122136
2. Display only the directory tree for a specific folder:
123137

124138
```bash

0 commit comments

Comments
 (0)