The README Generator is a tool that allows you to generate README files for your code repositories. It aims to provide a starting place for creating informative and well-structured READMEs. With the ability to specify a glob pattern, the tool is designed to work with any code that is understandable by ChatGPT, making it flexible and adaptable.
- Automated README generation: The tool automates the process of generating README files, saving you time and effort.
- Glob pattern support: You can specify a glob pattern to select the files you want to include in the README, ensuring that only relevant information is included.
- Active voice and removal of duplication: The generated READMEs are written in active voice and avoid unnecessary duplication, making them more concise and readable.
- Approachable to all software engineers: The READMEs are written in a way that is easily understandable by software engineers of all levels of experience.
To install the README Generator, follow these steps:
brew tap jtarchie/readme-generator https://github.com/jtarchie/readme-generator
brew install readme-generator
- Ensure you have Go version 1.21.1 or later installed on your system.
- Clone the repository:
git clone https://github.com/jtarchie/readme-generator.git
- Change into the project directory:
cd readme-generator
- Build the project:
go build -o readme-generator
- Optionally, add the binary to your system's PATH for easier access:
export PATH=$PATH:/path/to/readme-generator
To use the README Generator, run the following command:
readme-generator --glob=<glob pattern> --filename=<output filename> --openai-access-token=<OpenAI API token> --base-url=<OpenAI base URL> --prompt=<additional prompt information>
Replace the placeholders with the appropriate values:
<glob pattern>
: The glob pattern specifying the files to read to help determine the README content.<output filename>
: The name of the file to output the generated README.<OpenAI API token>
: The API token for the OpenAI API. Make sure to obtain a valid token before running the tool.<OpenAI base URL>
(optional): The URL of the OpenAI HTTP domain. If not provided, the default valuehttps://api.openai.com/v1
will be used.<additional prompt information>
: Additional information to provide as a prompt when generating the README.
To evaluate the project, consider the following aspects:
- Ease of use: Assess how easy it is to set up and use the README Generator.
- Generated README quality: Examine the quality and clarity of the READMEs produced by the tool.
- Flexibility: Test the tool's ability to handle different code repositories by providing various glob patterns.
- Performance: Evaluate the speed and efficiency of the README generation process.
If you encounter any issues or have suggestions for improvement, please feel free to contribute by making the necessary changes and submitting a pull request.
This README was generated by the README Generator tool. We believe that leveraging automation to create READMEs is a valuable and efficient approach. If you have any questions or need further assistance, don't hesitate to reach out.