mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-30 00:50:32 +08:00
Update README.md
This commit is contained in:
@@ -60,17 +60,14 @@ This is a tutorial project of [Pocket Flow](https://github.com/The-Pocket/Pocket
|
|||||||
1. Clone this repository
|
1. Clone this repository
|
||||||
|
|
||||||
2. Install dependencies:
|
2. Install dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Generate a complete codebase tutorial by running the main script:
|
3. Generate a complete codebase tutorial by running the main script:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python main.py https://github.com/username/repo --include "*.py" "*.js" --exclude "tests/*" --max-size 50000
|
python main.py https://github.com/username/repo --include "*.py" "*.js" --exclude "tests/*" --max-size 50000
|
||||||
```
|
```
|
||||||
|
|
||||||
- `repo_url` - URL of the GitHub repository (required)
|
- `repo_url` - URL of the GitHub repository (required)
|
||||||
- `-n, --name` - Project name (optional, derived from URL if omitted)
|
- `-n, --name` - Project name (optional, derived from URL if omitted)
|
||||||
- `-t, --token` - GitHub token (or set GITHUB_TOKEN environment variable)
|
- `-t, --token` - GitHub token (or set GITHUB_TOKEN environment variable)
|
||||||
@@ -78,12 +75,7 @@ This is a tutorial project of [Pocket Flow](https://github.com/The-Pocket/Pocket
|
|||||||
- `-i, --include` - Files to include (e.g., "*.py" "*.js")
|
- `-i, --include` - Files to include (e.g., "*.py" "*.js")
|
||||||
- `-e, --exclude` - Files to exclude (e.g., "tests/*" "docs/*")
|
- `-e, --exclude` - Files to exclude (e.g., "tests/*" "docs/*")
|
||||||
- `-s, --max-size` - Maximum file size in bytes (default: 100KB)
|
- `-s, --max-size` - Maximum file size in bytes (default: 100KB)
|
||||||
|
|
||||||
- Crawl GitHub repositories at specific commits or branches
|
|
||||||
- Filter files by patterns (include/exclude)
|
|
||||||
- Set maximum file size limits
|
|
||||||
- Generate relative paths for simpler directory structures
|
|
||||||
|
|
||||||
The application will crawl the repository, analyze the codebase structure, generate tutorial content, and save the output in the specified directory (default: ./output).
|
The application will crawl the repository, analyze the codebase structure, generate tutorial content, and save the output in the specified directory (default: ./output).
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user