mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 18:13:16 -06:00
move scripts, allow testing both dbs with one cmd
This commit is contained in:
parent
f2e5bedea6
commit
5510a39cf3
13 changed files with 263 additions and 99 deletions
9
scripts/generateswagger.sh
Executable file
9
scripts/generateswagger.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
SWAGGER_FILE="docs/api/swagger.yaml"
|
||||
GTS_VERSION="$(cat version)"
|
||||
|
||||
swagger generate spec -o "${SWAGGER_FILE}" --scan-models
|
||||
sed -i "s/REPLACE_ME/${GTS_VERSION}/" "${SWAGGER_FILE}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue