Add print-ready PDF (#127)

This commit is contained in:
Luca Palmieri
2024-08-06 17:09:04 +02:00
committed by GitHub
parent 0910f3909f
commit c9ed60daf5
11 changed files with 860 additions and 7 deletions

12
helpers/json2redirects.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Ensure the JSON file is provided as an argument
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <input_json_file>"
exit 1
fi
input_file=$1
# Use jq to parse the JSON and format the output
jq -r 'to_entries[] | "/" + .value + " " + .key' "$input_file"