interlocutor is a tool for generating descriptions of repositories that are machine-readable. It can output the folder and file structure, process repository contents, and write this information to an output file.
- Generate Directory Structure: Output the folder and file structure of a repository in a clear and organized format that is machine and human-readable.
- Process Repository Files: Extract and save the contents of files in a repository to a structured output file.
- Customizable Output: Specify a preamble, output file, and additional ignore files to customize the output.
- Structure-Only Option: Generate only the directory structure without processing file contents.
You can install postnormalism using pip:
pip install interlocutor To generate only the directory structure of a repository without including file contents:
interlocutor /path/to/git/repository --structure-only -o structure_output.txtYou can include a preamble at the beginning of the output file:
interlocutor /path/to/git/repository -p /path/to/preamble.txt -o output.txtIf you want to use additional ignore files along with .gptignore, specify them using the --ignore option:
interlocutor /path/to/git/repository --ignore /path/to/additional_ignore_file.txt -o output.txtOr just import and use the underlying utility functions.
Please submit a start a discussion, create a pull request or create an issue if you have any suggestions or improvements.
- @jzmiller1 (Zac Miller)
- N/A
interlocutor is released under the MIT License. See the LICENSE file for more information.