Kanji
・클라우드 엔지니어 / 프리랜서 ・1993년생 ・에히메현 출신 / 도쿄도 시부야구 거주 ・AWS 경력 5년 프로필 상세
목차
소스 코드는 다음 GitHub 저장소에서 사용할 수 있습니다.
kanji-shinohara/github-copilot-cli
다음 비디오에서 PyAutoGUI를 사용하여 사용자 정의 CLI 도구 github-copilot-cli 를 자동화하는 작업 이미지를 볼 수 있습니다.
github-copilot-cli
<동영상: CLI 옵션에서 GitHub Copilot Chat 작동>
CLI 옵션에서 GitHub Copilot Chat 운영
<동영상: spec.yml에 저장소를 지정하여 일괄 실행>
spec.yml에 저장소를 지정하여 일괄 실행
github-copilot-cli 를 실행하기 위한 전제 조건은 다음과 같습니다.
exec_github_copilot_chat.py
open_vscode_with_file
"/Applications/Visual Studio Code - Insiders.app"
command + Shift + i
ctrl + l
command + Enter
command + k
command + w
a
requirements.txt :
requirements.txt
PyAutoGUI PyYAML pillow pytesseract pygetwindow
이 CLI 사용에 대한 참고 사항:
다양한 주의사항이 있으므로 이를 이해하고 필요에 따라 스크립트를 수정해야 합니다.이 도구는 유지 관리가 어렵기 때문에 스크립트를 직접 수정할 수 없다면 공식 CLI가 제공될 때까지 기다리는 것이 더 나을 수도 있습니다.
gh repo clone kanji-shinohara/github-copilot-cli cd github-copilot-cli
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
brew install gh # or install by official instructions gh auth login
VSCode와 Copilot Chat 확장 프로그램을 설치하세요. GitHub Copilot 채팅 프롬프트 완성은 영어로만 지원되므로 일본어 현지화 플러그인을 사용하지 마세요.
github_copilot_cli/config/config.yml 에서 절전 시간(초) 및 기타 설정을 조정할 수 있습니다.
github_copilot_cli/config/config.yml
github-copilot-cli 를 실행하는 방법에는 CLI 옵션을 통해 Copilot Chat 작업을 지정하거나 spec.yml 을 사용하여 일괄 실행하는 두 가지 방법이 있습니다.
spec.yml
python github_copilot_cli.py \ --file <file path> \ --working_directory <working directory> \ --chat_message "<chat message>"
예:
python github_copilot_cli.py \ --file README.md \ --working_directory /Users/user01/Desktop/github-copilot-cli \ --chat_message "Write the README for this repository."
python github_copilot_cli.py \ --spec_file <path to spec.yml>
python github_copilot_cli.py \ --spec_file spec.yml