Useful snippets for developers - GovReady/govready-q GitHub Wiki

Handy grep commands for finding environmental variable use (from issue #607):

# get each top-level key, by itself, no dupes
grep -rP -ho "environment(\.get\(|\[)(['\"])\K.*?(?=\2)" siteapp/ | sort | uniq
# show key in original context
grep -rnP -o "environment(\.get\(|\[)(['\"])\K.*?(?=\2)" siteapp/

Slack's notification flow:

see: https://twitter.com/mathowie/status/837735473745289218