App-Git-IssueManager
view release on metacpan or search on metacpan
lib/App/Git/IssueManager/List.pm view on Meta::CPAN
{
$self->show_status(['open','closed','inprogress','assigned']);
}
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
if (!$manager->ready)
{
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
exit(-1);
}
binmode(STDOUT, ":utf8");
my @issues=$manager->list();
my $t = Text::ANSITable->new;
$t->use_utf8(1);
$t->use_color(1);
$t->border_style('UTF8::SingleLine');
$t->columns(["ID", "Subject", "Type", "Priority", "Severity", "Status", "Author", "Worker"]);
@stati=@{$self->show_status};
for my $i (@issues)
{
lib/App/Git/IssueManager/Status.pm view on Meta::CPAN
sub run
{
my $self = shift;
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
if (!$manager->ready)
{
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
exit(-1);
}
binmode(STDOUT, ":utf8");
my $stats=$manager->stats();
my $tag = $manager->tag();
my $t = Text::ANSITable->new;
$t->use_utf8(1);
$t->use_color(1);
$t->use_box_chars(1);
$t->border_style('Default::single_boxchar');
$t->columns(["Name","Value"]);
$t->add_row(["Open Issues",$stats->{open}]);
( run in 0.703 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )