Simplify repo init with just

initialization can now simply performed with "just" or "just init"
This commit is contained in:
GHOSCHT 2024-05-30 18:15:52 +02:00
parent d0096a26da
commit 9518793982
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 16 additions and 2 deletions

View file

@ -6,6 +6,5 @@ The server's OpenAPI contract is added via Git submodules. OpenAPI generator cli
```sh ```sh
git clone git clone
git submodule update --init --recursive #Update OpenAPI submodule just
just openapi #Generate OpenAPI types
``` ```

View file

@ -1,2 +1,17 @@
#Generate OpenAPI types
openapi: openapi:
openapi-generator-cli generate -i ./openapi/api/server.yaml -g rust-axum -o ./openapi/module openapi-generator-cli generate -i ./openapi/api/server.yaml -g rust-axum -o ./openapi/module
#Add OpenAPI submodule
submodule-init:
git submodule update --init --recursive
#Update OpenAPI contract
submodule-update:
git submodule update --remote
#Add OpenAPI submodule & generate OpenAPI types
init:
submodule-init openapi
alias default := init