passing arguments to jq filter

前端 未结 4 1907
孤城傲影
孤城傲影 2020-11-29 07:33

Here is my config.json:

{
    \"env\": \"dev\",
    \"dev\": {
        \"projects\" : {
            \"prj1\": {
                \"dependencies\": {},
                


        
4条回答
  •  北海茫月
    2020-11-29 08:00

    You can use --argjson too when you make your json.

    --arg a v       # set variable $a to value ;
    --argjson a v   # set variable $a to JSON value ;
    

提交回复
热议问题