ADD: reworked IssueManager

This commit is contained in:
Dominik Meyer 2018-09-10 22:43:42 +02:00
parent 3b0786e21d
commit 51c07253f5
No known key found for this signature in database
GPG Key ID: B4C312B600606B64
6 changed files with 14 additions and 14 deletions

View File

@ -4,7 +4,7 @@ use strict;
use warnings;
use MooseX::App::Command;
extends qw(App::Git::IssueManager);
use Git::RepositoryHL;
use Git::LowLevel;
use Git::IssueManager;
use Git::IssueManager::Issue;
use App::Git::IssueManager::Config;
@ -65,7 +65,7 @@ option 'description' => (
sub run
{
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)
{
print("IssueManager not initialized yet. Please call \"init\" command to do so.");

View File

@ -4,7 +4,7 @@ use strict;
use warnings;
use MooseX::App::Command;
extends qw(App::Git::IssueManager);
use Git::RepositoryHL;
use Git::LowLevel;
use Git::IssueManager;
use Git::IssueManager::Issue;
@ -26,7 +26,7 @@ option 'id' => (
sub run
{
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)
{
print("IssueManager not initialized yet. Please call \"init\" command to do so.");

View File

@ -4,7 +4,7 @@ use strict;
use warnings;
use MooseX::App::Command;
extends qw(App::Git::IssueManager);
use Git::RepositoryHL;
use Git::LowLevel;
use Git::IssueManager;
use Git::IssueManager::Issue;
@ -26,7 +26,7 @@ option 'id' => (
sub run
{
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)
{
print("IssueManager not initialized yet. Please call \"init\" command to do so.");

View File

@ -4,7 +4,7 @@ use strict;
use warnings;
use MooseX::App::Command;
extends qw(App::Git::IssueManager);
use Git::RepositoryHL;
use Git::LowLevel;
use Git::IssueManager;
use Git::IssueManager::Issue;
@ -26,7 +26,7 @@ option 'id' => (
sub run
{
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)
{
print("IssueManager not initialized yet. Please call \"init\" command to do so.");

View File

@ -4,7 +4,7 @@ use strict;
use warnings;
use MooseX::App::Command;
extends qw(App::Git::IssueManager);
use Git::RepositoryHL;
use Git::LowLevel;
use Git::IssueManager;
use Git::IssueManager::Issue;
@ -28,7 +28,7 @@ sub run
{
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)
{
$manager->init($self->tag);

View File

@ -4,7 +4,7 @@ use strict;
use warnings;
use MooseX::App::Command;
extends qw(App::Git::IssueManager);
use Git::RepositoryHL;
use Git::LowLevel;
use Git::IssueManager;
use Git::IssueManager::Issue;
@ -28,7 +28,7 @@ option 'use_color' => (
sub run
{
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)
{
print("IssueManager not initialized yet. Please call \"init\" command to do so.");
@ -52,8 +52,8 @@ sub run
{
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,
$i->creation_date->ymd() . " " . $i->creation_date->hms());
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->author,$i->creation_date->ymd() . " " . $i->creation_date->hms());
}
print color('reset');
}