Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghr

made-with-rust

Generative Helper in Rust | GHR | - A command line tool to help developers generate boilerplate code templates.

🍬 Highlevel architechture/design

🕴 Preview

preview

🏃 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Clone the repository.

git clone https://github.com/d1pankarmedhi/ghr.git

Build the project dependencies

cargo build

Make sure to set your openai key as environment variable

export OPENAI_API_KEY=<api-key>

Run project

cargo run 

📎 Example

Generating Dockerfile template for a python fastapi server using ghr.

cargo run

Build and run Binary

You can run the main.py file or run the binary inside the target directory, produced after building the project.

Use cargo build --release to build a smaller and optimized binary for release.

Todo

  • OpenAI response processing
  • File saving
  • Error handling
  • Support for code template

🛠 Built With

📃 License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

✍️ Generate boilerplate code templates using Rust

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages