Autoexport
Build Failed The build failed
Ravenous/Ravenous-LaTeX/pipeline/head There was a failure building this commit
Details
Build Failed The build failed
Ravenous/Ravenous-LaTeX/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
e2cebf1df5
commit
90e0b24886
|
|
@ -24,7 +24,7 @@ while [[ $# -gt 0 ]]; do
|
|||
done
|
||||
|
||||
# ---------- Resolve ID range (default: 0-21) ----------
|
||||
RANGE=${1:-0-21}
|
||||
RANGE=${1:-1-21}
|
||||
|
||||
# Accept either "X-Y" or just a single number "X".
|
||||
if [[ "$RANGE" =~ ^([0-9]+)-([0-9]+)$ ]]; then
|
||||
|
|
@ -51,24 +51,16 @@ CONTAINER_IMAGE=${CONTAINER_IMAGE:-localhost/ravenous-podman:latest}
|
|||
for id in $(seq "$START" "$END"); do
|
||||
if [[ $RAW -eq 1 ]]; then
|
||||
# ----- Run cargo directly -----
|
||||
cmd="cargo run -- monsters balance \
|
||||
--filter \"id=${id}\" \
|
||||
--show-extra --show-balanced"
|
||||
cmd="cargo run -- monsters balance --filter \"id=${id}\" --show-extra --show-balanced"
|
||||
else
|
||||
# ----- Wrap the cargo command in a Podman container -----
|
||||
cmd="podman run \
|
||||
--rm -i --tty \
|
||||
-v \"$(pwd)\":/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
monsters balance \
|
||||
--filter \"id=${id}\" \
|
||||
--show-extra --show-balanced"
|
||||
cmd="podman run --rm -i --tty -v \"$(pwd)\":/workspace $CONTAINER_IMAGE monsters balance --filter \"id=${id}\" --show-extra --show-balanced"
|
||||
fi
|
||||
|
||||
# Execute the command string via to‑html and write to <id>.html
|
||||
to-html "$cmd" > "${id}.html"
|
||||
to-html -Nd --theme light "$cmd" | sed $'s/\^@//g' > "balance_${id}.html"
|
||||
|
||||
echo "✓ id=$id → ${id}.html"
|
||||
echo "✓ id=$id → balance_${id}.html"
|
||||
done
|
||||
|
||||
echo "All files written (${START}..${END})."
|
||||
|
|
|
|||
Reference in New Issue