나는 당신이 JQ 구문을 사용하여 다음과 같은 페이로드</p> <pre><code>ProductCostingBJF_v2.3.0 true master true </code></pre> <p>존재하는 JSON을 꺼내
[
{
"name": "ProductCostingBJF_v2.3.0",
"commit": {
},
"protection": {
"enabled": true,
"required_status_checks": {
"enforcement_level": "off",
"contexts": []
}
}
},
{
"name": "master",
"commit": {
},
"protection": {
"enabled": true,
"required_status_checks": {
"enforcement_level": "off",
"contexts": []
}
}
}
]
도움을 줄 수있는 페이로드에서 여러 필드를 추출 나는 나는 ... 첫 번째 부분을 가지고
jq -r .[].name
으로 지점 이름을 얻을 수 있지만 사용 가능한 값을 가져 오는 방법을 알 수 없습니다.
[] 이름
당신은 파이프 그것을
column
에 수 출력 정렬하세요 ,. []. protection.enabled 이런 식으로? – Bram