Add validate-feed helper script

This commit is contained in:
Abel Luck 2026-03-31 11:28:26 +02:00
parent 939cd9ea5d
commit dce67ea9e3
3 changed files with 80 additions and 0 deletions

11
scripts/validate-feed Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -eu
feedvalidator_dir="${FEEDVALIDATOR_DIR:-$HOME/src/github.com/w3c/feedvalidator}"
pager="${PAGER:-less}"
feed_path="$(realpath "$1")"
shift
cd "$feedvalidator_dir"
uv run validate_feed.py "$feed_path" "$@" | "$pager"