Skip to content
Browse files

Merge branch 'master' into develop

  • Loading branch information...
2 parents 7007737 + f039ae2 commit b0dbe07084f83ef850aec74927ceaa929ac71ce4 @c9s committed
Showing with 10 additions and 2 deletions.
  1. +5 −1 lib/App/gh/Command/Pullreq/List.pm
  2. +5 −1 lib/App/gh/Command/Pullreq/Show.pm
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;

0 comments on commit b0dbe07

Please sign in to comment.
Something went wrong with that request. Please try again.