From 14efdf829f0a8deca7b2814090f9a1c1a243e59a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 24 May 2018 22:14:00 -0700 Subject: API codegen helper script --- rust/codegen_openapi2.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 rust/codegen_openapi2.sh 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 -- cgit v1.2.3