2022-04-11 04:58:58 +08:00
|
|
|
projects := "warpgate warpgate-admin warpgate-common warpgate-db-entities warpgate-db-migrations warpgate-protocol-ssh"
|
|
|
|
|
|
|
|
run *ARGS:
|
|
|
|
RUST_BACKTRACE=1 RUST_LOG=warpgate cd warpgate && cargo run -- --config ../config.yaml {{ARGS}}
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
for p in {{projects}}; do cargo fmt -p $p -v; done
|
|
|
|
|
|
|
|
fix *ARGS:
|
|
|
|
for p in {{projects}}; do cargo fix -p $p {{ARGS}}; done
|
|
|
|
|
|
|
|
clippy *ARGS:
|
|
|
|
for p in {{projects}}; do cargo clippy -p $p {{ARGS}}; done
|
|
|
|
|
|
|
|
yarn *ARGS:
|
|
|
|
cd warpgate-admin/app/ && yarn {{ARGS}}
|
|
|
|
|
2022-05-30 15:32:45 +08:00
|
|
|
migrate *ARGS:
|
|
|
|
cargo run -p warpgate-db-migrations -- {{ARGS}}
|
|
|
|
|
2022-05-30 18:55:09 +08:00
|
|
|
lint:
|
|
|
|
cd warpgate-admin/app/ && yarn run lint
|
|
|
|
|
2022-04-11 04:58:58 +08:00
|
|
|
svelte-check:
|
|
|
|
cd warpgate-admin/app/ && yarn run check
|
|
|
|
|
|
|
|
openapi-all:
|
|
|
|
cd warpgate-admin/app/ && yarn openapi-schema && yarn openapi-client
|
|
|
|
|
|
|
|
openapi:
|
|
|
|
cd warpgate-admin/app/ && yarn openapi-client
|
|
|
|
|
2022-05-30 18:55:09 +08:00
|
|
|
cleanup: (fix "--allow-dirty") (clippy "--fix" "--allow-dirty") fmt svelte-check lint
|