4 dest=${1-config/defaults.hjson}
6 cargo run -- --print-config-docs > "$dest"
7 # replace // comments with #
8 sed -i "s/^\([[:space:]]*\)\/\//\1#/" "$dest"
9 # remove trailing commas
10 sed -i "s/,\$//" "$dest"
11 # remove quotes around json keys
12 sed -i "s/\"//" "$dest"
13 sed -i "s/\"//" "$dest"