You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
462 B
Bash
15 lines
462 B
Bash
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
content=$(
|
||
|
cat <<END
|
||
|
<!-- this part generated by update-readme.sh -->
|
||
4 years ago
|
$(cargo run --bin rga -- --rga-list-adapters)
|
||
|
|
||
4 years ago
|
$(help2man -N "cargo run --bin rga --" | pandoc -f man -t markdown --atx-headers | rg --multiline "## USAGE:(.|\n)*")
|
||
|
<!-- 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
|
||
4 years ago
|
prettier --write README.md
|