aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-24 22:14:00 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-24 22:14:00 -0700
commit14efdf829f0a8deca7b2814090f9a1c1a243e59a (patch)
treef1550f2f1d706723a7a0274a130a6f810c2a8ef1 /rust
parentbe2e85911195a484c6e203752e00fddebd9047cc (diff)
downloadfatcat-14efdf829f0a8deca7b2814090f9a1c1a243e59a.tar.gz
fatcat-14efdf829f0a8deca7b2814090f9a1c1a243e59a.zip
API codegen helper script
Diffstat (limited to 'rust')
-rwxr-xr-xrust/codegen_openapi2.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/codegen_openapi2.sh b/rust/codegen_openapi2.sh
new file mode 100755
index 00000000..e003ff39
--- /dev/null
+++ b/rust/codegen_openapi2.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cargo swagger fatcat-openapi2.yml fatcat-api --docker-tag=v2.3.1
+sudo chown `whoami`:`whoami` -R fatcat-api
+git checkout fatcat-api/Cargo.toml
+cargo fmt