mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-19 03:25:29 +00:00
3032a2745b
* Add otlp export * Add jaeger to dev docker * More instrument * Update deps * Merge from main. * Add comment about viewing traces * Fixing reqwest-tracing dep. * Update pre-commit regex * Move imports to top Co-authored-by: Dessalines <tyhou13@gmx.com> Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
14 lines
302 B
Bash
Executable File
14 lines
302 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
dest=${1-config/defaults.hjson}
|
|
|
|
cargo run -- --print-config-docs > "$dest"
|
|
# replace // comments with #
|
|
sed -i "s/^\([[:space:]]*\)\/\//\1#/" "$dest"
|
|
# remove trailing commas
|
|
sed -i "s/,\$//" "$dest"
|
|
# remove quotes around json keys
|
|
sed -i "s/\"//" "$dest"
|
|
sed -i "s/\"//" "$dest"
|