generateReadme.sh 341B

123456789101112
  1. #!/bin/bash
  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