Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' into develop

  • Loading branch information...
commit b0dbe07084f83ef850aec74927ceaa929ac71ce4 2 parents 7007737 + f039ae2
@c9s authored
View
6 lib/App/gh/Command/Pullreq/List.pm
@@ -6,7 +6,6 @@ use App::gh::Utils;
use File::stat;
use File::Temp;
use Text::Wrap;
-use IO::Pager;
require App::gh::Git;
@@ -43,6 +42,11 @@ sub get_remote {
sub run {
my $self = shift;
+ eval {
+ require IO::Pager;
+ };
+ die 'Please install IO::Pager to enable this command' if $@;
+
my $remote = $self->get_remote();
die "Remote not found\n." unless $remote;
View
6 lib/App/gh/Command/Pullreq/Show.pm
@@ -6,7 +6,6 @@ use App::gh::Utils;
use File::stat;
use File::Temp;
use Text::Wrap;
-use IO::Pager;
require App::gh::Git;
@@ -53,6 +52,11 @@ sub run {
return App::gh::Command->invoke('help', 'pullreq', 'show')
unless defined $number;
+ eval {
+ require IO::Pager;
+ };
+ die 'Please install IO::Pager to enable this command' if $@;
+
my $remote = $self->get_remote();
die "Remote not found\n." unless $remote;
Please sign in to comment.
Something went wrong with that request. Please try again.