Permalink
Browse files

Remove pre-prompt for all repos

  • Loading branch information...
1 parent 7217e2d commit ad79ea810f14bb04762c2c8c5fd8065875dc3ffb @c9s c9s committed Oct 21, 2011
Showing with 2 additions and 11 deletions.
  1. +2 −11 lib/App/gh/Command/All.pm
View
@@ -10,8 +10,8 @@ use Cwd ();
sub options { (
"verbose" => "verbose",
- "prompt" => "prompt",
- "into=s" => "into",
+ "prompt" => "prompt",
+ "into=s" => "into",
"exclude=s@" => "exclude",
"s|skip-exists" => "skip_exists",
@@ -62,20 +62,11 @@ sub run {
_info " Bare: on" if $self->{bare};
_info " Mirror: on" if $self->{mirror};
- if( $self->{prompt} ) {
- print "Clone them [Y/n] ? ";
- my $ans = <STDIN>;
- chomp( $ans );
- $ans ||= 'Y';
- return if( $ans =~ /n/ );
- }
-
my $exclude = do {
my $arr = ref $self->{exclude} eq 'ARRAY' ? $self->{exclude} : [];
+{map { $_ => 1 } @$arr};
};
-
my $cloned = 0;
my $print_progress = sub {

0 comments on commit ad79ea8

Please sign in to comment.