Skip to content

Instantly share code, notes, and snippets.

@WardCunningham
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WardCunningham/f096795d14c80ebf8e4c to your computer and use it in GitHub Desktop.
Save WardCunningham/f096795d14c80ebf8e4c to your computer and use it in GitHub Desktop.
Clone and Search all FedWiki Plugins
# make a fresh clone of all plugin repos
rm -rf all
mkdir all
for i in `sh listPlugins.sh`
do (cd all; git clone git@github.com:fedwiki/$i.git)&
done
# search all plugins for code references to wiki
grep wiki `ls all/*/client/*.coffee` |\
perl -ne 'print "$2\t$1\n" if /(\S+).*\b(wiki\.\w+)\b/' |\
sort | uniq
# list the names of all federated wiki plugins hosted in github.com/fedwiki
curl -s https://api.github.com/orgs/fedwiki/repos |\
perl -ne 'print "$1\n" if /"name": "(.+?)"/' |\
grep plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment