hurl/integration/generate_html
2020-08-27 16:44:57 +02:00

14 lines
297 B
Bash
Executable File

#!/bin/bash
set -e
mkdir -p target
find tests -name "*.hurl" | while read -r hurl_file; do
echo "$hurl_file"
html_file=target/"${hurl_file%.*}".html
echo "Generating $html_file"
mkdir -p "$(dirname "$html_file")"
hurlfmt --html --standalone "$hurl_file" > "$html_file"
done