github.com/tada-team/tdproto@v1.51.57/codegen/make-openapi.sh (about) 1 #!/bin/sh 2 set -e 3 cd $( dirname $0 ) 4 5 cd openapi 6 go run ./main.go > v4.json 7 8 if [[ -z $( which redoc-cli ) ]]; then 9 npm install -g redoc-cli 10 fi 11 12 redoc-cli bundle -o v4.html v4.json