sacloud / usacloud

usacloud:rabbit: : CLI client for the Sakura Cloud:cherry_blossom::cloud:
Apache License 2.0
54 stars 13 forks source link

JSONでの入力 + スケルトン出力 #26

Closed yamamoto-febc closed 7 years ago

yamamoto-febc commented 7 years ago

147 と #148 に分割


Input values from JSON like following:

$ cat switch.json
{
    "Name": "from_json",
    "Description": "description",
    "Tags": [
        "tag1",
        "tag2"
    ]
}

# create switch, input values from JSON
$ usacloud switch create --param-template-file switch.json

create skeleton (by JSON)

$ usacloud switch create --generate-skeleton > switch.json
$ cat switch.json
{
    "Name": "",
    "Description": "",
    "Tags": [
        ""
    ],
    "IconID": 0
}
yamamoto-febc commented 7 years ago

Fixed by #149 , #150