cli: share HTTP helpers and improve schema guidance

This commit is contained in:
Gregory Schier
2026-02-22 16:03:05 -08:00
parent 443e1b8262
commit c31d477a90
10 changed files with 97 additions and 84 deletions

View File

@@ -122,25 +122,7 @@ jobs:
fi
VERSION="${VERSION#v}"
echo "Building yaak version: $VERSION"
python - "$VERSION" <<'PY'
import pathlib
import re
import sys
version = sys.argv[1]
manifest = pathlib.Path("crates-cli/yaak-cli/Cargo.toml")
contents = manifest.read_text()
updated, replacements = re.subn(
r'(?m)^version = ".*"$',
f'version = "{version}"',
contents,
count=1,
)
if replacements != 1:
raise SystemExit("Failed to update yaak-cli version in Cargo.toml")
manifest.write_text(updated)
print(f"Updated {manifest} to version {version}")
PY
echo "YAAK_CLI_VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Build yaak
run: cargo build --locked --release -p yaak-cli --bin yaak --target ${{ matrix.target }}