2020-06-06 13:01:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
content=$(
|
|
|
|
cat <<END
|
|
|
|
<!-- this part generated by update-readme.sh -->
|
2020-06-06 13:07:59 +00:00
|
|
|
$(cargo run --bin rga -- --rga-list-adapters)
|
|
|
|
|
2023-05-26 14:37:28 +00:00
|
|
|
$(help2man -N "cargo run --bin rga --" | pandoc -f man -t markdown --markdown-headings=atx | rg --multiline "## USAGE:(.|\n)*")
|
2020-06-06 13:01:53 +00:00
|
|
|
<!-- end of part generated by update-readme.sh -->
|
|
|
|
END
|
|
|
|
)
|
|
|
|
|
|
|
|
rg --passthrough --multiline '.*update-readme.sh(.|\n)*update-readme.sh.*' README.md --replace "$content" | sponge README.md
|
2020-06-06 13:07:59 +00:00
|
|
|
prettier --write README.md
|