10P by xguru 2023-04-25 | favorite | 댓글과 토론
  • ChatGPT에 소스코드를 제공하고 프롬프트 넣고 대답을 받아서 복사하는 단계를 자동화
  • 리팩터링, 테스트 코드 작성등에 ChatGPT를 이용할 때 복사/붙여넣기 없이 바로 반영
  • $ promptr -m gpt4 -p "Cleanup the code in these files" app/index.js app.js
  • $ promptr -m gpt4 -p "Alphabetize the method names in all of these files" $(git ls-tree -r --name-only HEAD | grep ".js" | tr '\n' ' ')