Created
March 29, 2023 11:13
-
-
Save kxzk/e71998778288bcc151fb077a1af49041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function openai_edits_api | |
h 'can you generate a golang script that reads from stdin and sends that to the OpenAI Code Edits API endpoint - include only the code nothing else' | string replace '```' '' > openai_edits_api.go | |
h 'can you generate the commands to build and run the golang script - only include the commands' | string replace '```' '' > openai_edits_api.sh | |
data_gpt 'can you generate some tests for the following golang script' (cat openai_edits_api.go | string collect) | string replace '```' '' > openai_edits_api_test.go | |
data_gpt 'can you generate a makefile for a golang project with the following files' (ls) | string replace '```' '' > Makefile | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment