-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Peter Boling edited this page May 14, 2021
·
1 revision
Welcome to the rails_stats wiki!
To create a nice markdown stats.md document that you can add to version control and inject into your build pipeline...
bundle exec rake "stats[/path/to/your/app]" | sed 's/\+/\|/g' | tee >(sed 's/^[^|]*//g' | sed '/^$/d' > stats-table.md) | grep "Code LOC:" > stats-loc.md && cat stats-table.md stats-loc.md > stats.md && rm stats-table.md stats-loc.md
- Works in
bash
orzsh
⭐