generateReadme.sh 339B

123456789101112
  1. #!/bin/sh
  2. # generateReadme.sh: Regenerates the help section of the README.md using output from ./slop --help.
  3. # Remove help section
  4. sed -i '/^help/,/^```$/d' README.md
  5. # Add the help section again.
  6. echo 'help' >> README.md
  7. echo '----' >> README.md
  8. echo '```text' >> README.md
  9. echo "$(./slop --help)" >> README.md
  10. echo '```' >> README.md