-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or requestnodePull requests that update the node codePull requests that update the node codepythonPull requests that update python codePull requests that update python code
Description
Right now explainthisrepo supports repository and directory analysis:
explainthisrepo owner/repo
explainthisrepo .
explainthisrepo ./path/to/directorySo I have this idea to implement specific file analysis in local director
For example:
explainthisrepo ./[main.py](http://main.py/)
explainthisrepo ./[build.js](http://build.js/)
explainthisrepo ./DockerfileBehavior:
-
Detect when the target is a file (
os.path.isfile) -
Read file contents
-
Generate an explanation for the file
Prompt example:
Explain what this file does and how it works.
<file contents>Flag behavior:
| Flag | Supported |
|---|---|
--quick |
✓ |
--simple |
✓ |
--detailed |
✓ |
--stack |
✗ (repo-only) |
If --stack is used on a file:
error: stack detection requires a repository or directoryThis would make ExplainThisRepo useful for quickly understanding individual files.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestnodePull requests that update the node codePull requests that update the node codepythonPull requests that update python codePull requests that update python code