...
https://github.com/stedolan/jq/releases/download/jq-1.5/jq-win64.exe 를 다운받아서 PATH 가 걸린 폴더에 넣습니다.
사용법
Note |
---|
jq tutorial 문서를 참고하세요. |
curl 로 github 의 jq 소스에서 최근 5개의 커밋을 확인하는 REST API 호출을 할 경우를 생각해 봅시다.
...
Code Block |
---|
curl 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' |jq '[ .[] | {message: .commit.message, name: .commit.committer.name, date: .commit.author.date} ]' |