mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 15:39:11 +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"
|