Simplify repo init with just
initialization can now simply performed with "just" or "just init"
This commit is contained in:
parent
d0096a26da
commit
9518793982
2 changed files with 16 additions and 2 deletions
|
@ -6,6 +6,5 @@ The server's OpenAPI contract is added via Git submodules. OpenAPI generator cli
|
|||
|
||||
```sh
|
||||
git clone
|
||||
git submodule update --init --recursive #Update OpenAPI submodule
|
||||
just openapi #Generate OpenAPI types
|
||||
just
|
||||
```
|
||||
|
|
15
justfile
15
justfile
|
@ -1,2 +1,17 @@
|
|||
#Generate OpenAPI types
|
||||
openapi:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue