gist_url=https://gist.githubusercontent.com/YooWaan/6675843f9cae844abcb133b8edf04af3/raw/409fdd36c6d9daa4f7cb4dd80ac20d3abdecf108/opa-ht.sh
# url
$ curl $gist_url | bash -s -- -u https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v2.0/json/api-with-examples.json > sample.html
# file
$ curl $gist_url | bash -s -- -f oapi.json > sample.html
## (cannot use) use short url
# url
# $ curl https://shorturl.at/mNPR8 | bash -s -- -u https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/examples/v2.0/json/api-with-examples.json > sample.html
# file
# $ curl https://shorturl.at/mNPR8 | bash -s -- -f oapi.json > sample.html
- jq
- curl
- getopts
- cat