Skip to content

Commit 5296628

Browse files
Add subdirectory URL syntax documentation to README (#254)
* Add subdirectory URL syntax documentation to README Document how to access specific subdirectories using GitHub tree URLs with gitingest repo examples. Co-authored-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
1 parent 95009bd commit 5296628

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ gitingest /path/to/directory
8383

8484
# From URL
8585
gitingest https://github.com/cyclotruc/gitingest
86+
87+
# or from specific subdirectory
88+
gitingest https://github.com/cyclotruc/gitingest/tree/main/src/gitingest/utils
8689
```
8790

8891
For private repositories, use the `--token/-t` option.
@@ -117,6 +120,9 @@ summary, tree, content = ingest("path/to/directory")
117120

118121
# or from URL
119122
summary, tree, content = ingest("https://github.com/cyclotruc/gitingest")
123+
124+
# or from a specific subdirectory
125+
summary, tree, content = ingest("https://github.com/cyclotruc/gitingest/tree/main/src/gitingest/utils")
120126
```
121127

122128
For private repositories, you can pass a token:

0 commit comments

Comments
 (0)