clone/update all your repositories from github.com
use LWP::UserAgent;
use Config::GitLike;
use JSON 2 ();
sub repo_uris {
my $config_file = "$ENV{HOME}/.gitconfig";
my $config = Config::GitLi
ig_file'\n";
my $json = _get_json("http://github.com/api/v1/json/$login?login=$login&token=$token");
my $data = eval { JSON->new->decode($json) };
die "BAD JSON\n$@\n$json\n" unless $data;
t@github.com:%s/%s.git',
$login,
$repo->{name};
}
return \%repo_uri;
}
sub _get_json {
my $url = shift;
my $ua = LWP::UserAgent->new;
$ua->env_proxy;
my $response = $ua->ge