Skip to content

Commit 725bc5c

Browse files
Error handling
1 parent ef3aff6 commit 725bc5c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

justfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ docker-compose := if `command -v docker-compose; echo $?` == "0" {
4444
# [halp] list available commands
4545
default:
4646
just --list
47-
@echo {{IMAGE}}
4847

4948
# [init] install dependencies, tooling, and virtual environment
5049
install args=CWD:
@@ -113,20 +112,22 @@ install args=CWD:
113112
update-deps args=CWD:
114113
#!/usr/bin/env bash
115114
# set -euxo pipefail
116-
find . -maxdepth 3 -name "pyproject.toml" -exec \
115+
args=$(realpath {{args}})
116+
find "${args}" -maxdepth 3 -name "pyproject.toml" -exec \
117117
echo "[{}]" \; -exec \
118118
echo "Clearing pypi cache..." \; -exec \
119-
poetry --directory {{args}} cache clear --all pypi --no-ansi \; -exec \
120-
poetry --directory {{args}} update --lock --no-ansi \;
119+
poetry --directory "${args}" cache clear --all pypi --no-ansi \; -exec \
120+
poetry --directory "${args}" update --lock --no-ansi \;
121121

122122
# [deps] export requirements.txt
123123
export-reqs args=CWD: update-deps
124124
#!/usr/bin/env bash
125125
# set -euxo pipefail
126-
find {{CWD}} -maxdepth 3 -name "pyproject.toml" -exec \
126+
args=$(realpath {{args}})
127+
find "${args}" -maxdepth 3 -name "pyproject.toml" -exec \
127128
echo "[{}]" \; -exec \
128129
echo "Exporting requirements.txt..." \; -exec \
129-
poetry --directory {{args}} export --no-ansi --without-hashes --output requirements.txt \;
130+
poetry --directory "${args}" export --no-ansi --without-hashes --output requirements.txt \;
130131

131132
# [git] update git submodules
132133
sub:

0 commit comments

Comments
 (0)