Last active
January 5, 2018 19:51
-
-
Save cossio/7ff447977da330d6cd518728ed3bae68 to your computer and use it in GitHub Desktop.
List packages with their remotes, filtered to contain my name (serves to identify my own packages).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgdirs = filter(d -> isdir(d) && !startswith(basename(d), "."), | |
Pkg.dir.(readdir(Pkg.dir()))); | |
for dir in pkgdirs | |
remote = first(split(readchomp(`git -C $dir remote -vv`), "\n")) | |
if contains(remote, "cossio") | |
println(remote) | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment