You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2019. It is now read-only.
grep -Porih "(?<=VHost.get\(('|\"))[^('|\")\)]*" src | # get VHost.get('...') and VHost.get("...") occurrencies in all the source code
sort -u | # sort them and remove duplicates
awk ' BEGIN { ORS = "\n"; print "//WARNING: THIS FILE IS AUTO-GENERATED, DO NOT MODIFY IT (use npm run vhost:keys to rebuild it)\nmodule.exports = ["; } { print "\t/@"$0"/@,"; } END { print "];"; }' | # format them as JSON
sed "s^\"^\\\\\"^g;s^\/\@\/\@^\", \"^g;s^\/\@^\"^g" > gen/vhost/vhost-keys.js
# now write all references to each VHost key within source code
# keeps track of file path and line number of each reference
grep -Porin "(?<=VHost.get\(('|\"))[^('|\")\)]*" src | # get VHost.get('...') and VHost.get("...") occurrencies in all the source code