# Promptr - GPT의 코드 변경 추천을 쉽게 적용해주는 CLI 도구

> Clean Markdown view of GeekNews topic #9032. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=9032](https://news.hada.io/topic?id=9032)
- GeekNews Markdown: [https://news.hada.io/topic/9032.md](https://news.hada.io/topic/9032.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-04-25T11:06:01+09:00
- Updated: 2023-04-25T11:06:01+09:00
- Original source: [github.com/ferrislucas](https://github.com/ferrislucas/promptr)
- Points: 10
- Comments: 0

## Topic Body

- 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' ' ')```

## Comments



_No public comments on this page._
