Skip to content

Commit 712b691

Browse files
committed
update docs
1 parent 256eed0 commit 712b691

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ go install github.com/rostrovsky/sourceprompt@latest
2121

2222
## Flags
2323

24-
* `-i, --include` - Regex pattern of paths that should be included.
25-
* `-e, --exclude` - Regex pattern of paths that should be excluded.
24+
* `-i, --include` - Regex patterns of paths that should be included.
25+
* `-e, --exclude` - Regex patterns of paths that should be excluded.
2626
* `-o, --output` - Output file path. When not specified, output will be printed to `stdout`.
2727
* `-p, --prompt` - Prompt file path or URL. Allows specifying custom prompt which will be put at the beginning of the output. **If not specified, [default prompt](#default-prompt) will be used.**
2828
* `-r, --raw` - Removes prompt from the output.
@@ -53,8 +53,14 @@ sourceprompt /path/to/dir -o out.md -p my_prompt.txt
5353
# include only src/ files
5454
sourceprompt /path/to/dir -o out.md -i '^src'
5555

56+
# include only C source files
57+
sourceprompt /path/to/dir -o out.md -i '.c$' -i '.h$'
58+
5659
# exclude markdown files
5760
sourceprompt /path/to/dir -o out.md -e '\.md$'
61+
62+
# exclude multiple types
63+
sourceprompt /path/to/dir -o out.md -e '.md$' -e '.txt$' -e 'LICENSE'
5864
```
5965

6066
## Default prompt

0 commit comments

Comments
 (0)