ADD: reworked IssueManager
This commit is contained in:
parent
3b0786e21d
commit
51c07253f5
@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use MooseX::App::Command;
|
use MooseX::App::Command;
|
||||||
extends qw(App::Git::IssueManager);
|
extends qw(App::Git::IssueManager);
|
||||||
use Git::RepositoryHL;
|
use Git::LowLevel;
|
||||||
use Git::IssueManager;
|
use Git::IssueManager;
|
||||||
use Git::IssueManager::Issue;
|
use Git::IssueManager::Issue;
|
||||||
use App::Git::IssueManager::Config;
|
use App::Git::IssueManager::Config;
|
||||||
@ -65,7 +65,7 @@ option 'description' => (
|
|||||||
sub run
|
sub run
|
||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $manager = Git::IssueManager->new(repository=>Git::RepositoryHL->new(git_dir=> "."));
|
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
|
||||||
if (!$manager->ready)
|
if (!$manager->ready)
|
||||||
{
|
{
|
||||||
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
||||||
|
@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use MooseX::App::Command;
|
use MooseX::App::Command;
|
||||||
extends qw(App::Git::IssueManager);
|
extends qw(App::Git::IssueManager);
|
||||||
use Git::RepositoryHL;
|
use Git::LowLevel;
|
||||||
use Git::IssueManager;
|
use Git::IssueManager;
|
||||||
use Git::IssueManager::Issue;
|
use Git::IssueManager::Issue;
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ option 'id' => (
|
|||||||
sub run
|
sub run
|
||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $manager = Git::IssueManager->new(repository=>Git::RepositoryHL->new(git_dir=> "."));
|
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
|
||||||
if (!$manager->ready)
|
if (!$manager->ready)
|
||||||
{
|
{
|
||||||
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
||||||
|
@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use MooseX::App::Command;
|
use MooseX::App::Command;
|
||||||
extends qw(App::Git::IssueManager);
|
extends qw(App::Git::IssueManager);
|
||||||
use Git::RepositoryHL;
|
use Git::LowLevel;
|
||||||
use Git::IssueManager;
|
use Git::IssueManager;
|
||||||
use Git::IssueManager::Issue;
|
use Git::IssueManager::Issue;
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ option 'id' => (
|
|||||||
sub run
|
sub run
|
||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $manager = Git::IssueManager->new(repository=>Git::RepositoryHL->new(git_dir=> "."));
|
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
|
||||||
if (!$manager->ready)
|
if (!$manager->ready)
|
||||||
{
|
{
|
||||||
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
||||||
|
@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use MooseX::App::Command;
|
use MooseX::App::Command;
|
||||||
extends qw(App::Git::IssueManager);
|
extends qw(App::Git::IssueManager);
|
||||||
use Git::RepositoryHL;
|
use Git::LowLevel;
|
||||||
use Git::IssueManager;
|
use Git::IssueManager;
|
||||||
use Git::IssueManager::Issue;
|
use Git::IssueManager::Issue;
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ option 'id' => (
|
|||||||
sub run
|
sub run
|
||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $manager = Git::IssueManager->new(repository=>Git::RepositoryHL->new(git_dir=> "."));
|
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
|
||||||
if (!$manager->ready)
|
if (!$manager->ready)
|
||||||
{
|
{
|
||||||
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
||||||
|
@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use MooseX::App::Command;
|
use MooseX::App::Command;
|
||||||
extends qw(App::Git::IssueManager);
|
extends qw(App::Git::IssueManager);
|
||||||
use Git::RepositoryHL;
|
use Git::LowLevel;
|
||||||
use Git::IssueManager;
|
use Git::IssueManager;
|
||||||
use Git::IssueManager::Issue;
|
use Git::IssueManager::Issue;
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ sub run
|
|||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
my $manager = Git::IssueManager->new(repository=>Git::RepositoryHL->new(git_dir=> "."));
|
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
|
||||||
if (!$manager->ready)
|
if (!$manager->ready)
|
||||||
{
|
{
|
||||||
$manager->init($self->tag);
|
$manager->init($self->tag);
|
||||||
|
@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use MooseX::App::Command;
|
use MooseX::App::Command;
|
||||||
extends qw(App::Git::IssueManager);
|
extends qw(App::Git::IssueManager);
|
||||||
use Git::RepositoryHL;
|
use Git::LowLevel;
|
||||||
use Git::IssueManager;
|
use Git::IssueManager;
|
||||||
use Git::IssueManager::Issue;
|
use Git::IssueManager::Issue;
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ option 'use_color' => (
|
|||||||
sub run
|
sub run
|
||||||
{
|
{
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $manager = Git::IssueManager->new(repository=>Git::RepositoryHL->new(git_dir=> "."));
|
my $manager = Git::IssueManager->new(repository=>Git::LowLevel->new(git_dir=> "."));
|
||||||
if (!$manager->ready)
|
if (!$manager->ready)
|
||||||
{
|
{
|
||||||
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
|
||||||
@ -52,8 +52,8 @@ sub run
|
|||||||
{
|
{
|
||||||
print color('reset');
|
print color('reset');
|
||||||
}
|
}
|
||||||
printf("%20s\t%15s\t%50s\t%10s\t%10s\t%20s\n", $i->id, $i->type, $i->subject, $i->priority, $i->severity,
|
printf("%20s\t%15s\t%30s\t%10s\t%10s\t%20s\t%20s\n", $i->id, $i->type, $i->subject, $i->priority, $i->severity,
|
||||||
$i->creation_date->ymd() . " " . $i->creation_date->hms());
|
$i->author,$i->creation_date->ymd() . " " . $i->creation_date->hms());
|
||||||
}
|
}
|
||||||
print color('reset');
|
print color('reset');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user