Skip to content

Instantly share code, notes, and snippets.

@cossio
Last active January 5, 2018 19:51
Show Gist options
  • Save cossio/7ff447977da330d6cd518728ed3bae68 to your computer and use it in GitHub Desktop.
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).
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