Skip to content

Instantly share code, notes, and snippets.

@travisjeffery
Created August 15, 2014 03:49
Show Gist options
  • Select an option

  • Save travisjeffery/46bd65801b8ae2b4c243 to your computer and use it in GitHub Desktop.

Select an option

Save travisjeffery/46bd65801b8ae2b4c243 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
dir="$1"
echo_url_for_description() {
local test_description="$1"
local param="$(echo $test_description | sed -e 's//g' | sed -e 's/[^a-zA-Z0-9]/-/g' | tr '[:upper:]' '[:lower:]')"
echo "https://github.com/travisjeffery/tron/wiki/Defaults-Checklist#$param"
}
grep '^@test' -r $dir | sed -e 's/@test .\(.*\). {$/\1/' | cut -f2 -d: | while read -r description; do
echo "### $description" >> Defaults-Checklist.md
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment