File tree Expand file tree Collapse file tree 5 files changed +232
-227
lines changed
Expand file tree Collapse file tree 5 files changed +232
-227
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # See https://just.systems/man/en
2+
3+ # positional args
4+ # * NOTE: unable to reuse recipe name (e.g., start/stop); prefix recipes with `@`
5+ # set positional-arguments := true
6+
7+ # load .env
8+ set dotenv-load
9+
10+ # set env var
11+ # export APP := `echo ${APP}`
12+ # export SCRIPT := "harden"
13+ # export VERSION := "latest"
14+
15+ # x86_64/arm64
16+ arch := ` uname -m `
17+
18+ # hostname
19+ host := ` uname -n `
20+
21+ # docker-compose / docker compose
22+ # * https://docs.docker.com/compose/install/linux/#install-using-the-repository
23+ # docker-compose := if `command -v docker-compose; echo $?` == "0" {
24+ # "docker-compose"
25+ # } else {
26+ # "docker compose"
27+ # }
28+
29+ # [halp] list available commands
30+ default :
31+ just --list
32+
33+ # [deps] update dependencies
34+ update-deps :
35+ #!/usr/bin/env bash
36+ # set -euxo pipefail
37+ find . -maxdepth 3 -name " pyproject.toml" -exec \
38+ echo " [{}]" \; -exec \
39+ echo " Clearring pypi cache..." \; -exec \
40+ poetry cache clear --all pypi --no-ansi \; -exec \
41+ poetry update --lock --no-ansi \;
42+
43+ # [deps] export requirements.txt
44+ export-reqs : update-deps
45+ #!/usr/bin/env bash
46+ # set -euxo pipefail
47+ find . -maxdepth 3 -name " pyproject.toml" -exec \
48+ echo " [{}]" \; -exec \
49+ echo " Exporting requirements.txt..." \; -exec \
50+ poetry export --no-ansi --without-hashes --output requirements.txt \;
51+
52+ # [git] update git submodules
53+ sub :
54+ git submodule update --init --recursive && git pull --recurse-submodules
You can’t perform that action at this time.
0 commit comments