Skip to content

Commit

Permalink
OK Loosen up things
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Oct 27, 2023
1 parent 446c388 commit 1a28aa3
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cli/Application/Command/Get/Project/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class Comments extends Project
*/
protected function configure(): void
{
parent::configure();

$this->setName(self::COMMAND_NAME);
$this->setDescription('Retrieve comments from GitHub.');
$this->addProgressBarOption();
$this->addProjectOption();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions cli/Application/Command/Get/Project/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class Events extends Project
*/
protected function configure(): void
{
parent::configure();

$this->setName(self::COMMAND_NAME);
$this->setDescription('Retrieve issue events from GitHub.');
$this->addProgressBarOption();
$this->addProjectOption();
}

/**
Expand Down
5 changes: 2 additions & 3 deletions cli/Application/Command/Get/Project/Issues.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ class Issues extends Project
*/
protected function configure(): void
{
parent::configure();

$this->setName(self::COMMAND_NAME);
$this->setDescription('Retrieve issue from GitHub.');
$this->addProgressBarOption();
$this->addProjectOption();
$this->addStatusOption();
}


Expand Down
4 changes: 2 additions & 2 deletions cli/Application/Command/Get/Project/Labels.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class Labels extends Project
*/
protected function configure(): void
{
parent::configure();

$this->setName(self::COMMAND_NAME);
$this->setDescription('Retrieve project labels from GitHub.');
$this->addProgressBarOption();
$this->addProjectOption();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions cli/Application/Command/Get/Project/Milestones.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ class Milestones extends Project
*/
protected function configure(): void
{
parent::configure();

$this->setName(self::COMMAND_NAME);
$this->setDescription('Retrieve project milestones from GitHub.');
$this->addProgressBarOption();
$this->addProjectOption();
}

/**
Expand Down
20 changes: 20 additions & 0 deletions cli/completions/Custom_jtracker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,26 @@
<name>get:project</name>
<help>Get the whole project info from GitHub, including issues and issue comments.</help>
</command>
<command>
<name>get:project_comments</name>
<help>Retrieve comments from GitHub.</help>
</command>
<command>
<name>get:project_events</name>
<help>Retrieve issue events from GitHub.</help>
</command>
<command>
<name>get:project_issues</name>
<help>Retrieve issue from GitHub.</help>
</command>
<command>
<name>get:project_labels</name>
<help>Retrieve project labels from GitHub.</help>
</command>
<command>
<name>get:project_milestones</name>
<help>Retrieve project milestones from GitHub.</help>
</command>
<command>
<name>get:users</name>
<help>Retrieve user info from GitHub.</help>
Expand Down
48 changes: 48 additions & 0 deletions cli/completions/jtracker.fish
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,59 @@ complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:composertags -
complete -f -c jtracker -n '__fish_jtracker_using_action get:composertags' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:composertags' -l all -d "Show all tags or only the most recent."
complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:project -d "Get the whole project info from GitHub, including issues and issue comments."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -l noprogress -d "Don't use a progress bar."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -l all -d "Process all issues."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -l issue -d "Process only a single issue."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -l range_from -d "First issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -l range_to -d "Last issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -s f -l force -d "Force an update even if the issue has not changed."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project' -l status -d "Process only an issue of given status."
complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:project_comments -d "Retrieve comments from GitHub."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -l noprogress -d "Don't use a progress bar."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -l all -d "Process all issues."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -l issue -d "Process only a single issue."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -l range_from -d "First issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -l range_to -d "Last issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -s f -l force -d "Force an update even if the issue has not changed."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_comments' -l status -d "Process only an issue of given status."
complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:project_events -d "Retrieve issue events from GitHub."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -l noprogress -d "Don't use a progress bar."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -l all -d "Process all issues."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -l issue -d "Process only a single issue."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -l range_from -d "First issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -l range_to -d "Last issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -s f -l force -d "Force an update even if the issue has not changed."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_events' -l status -d "Process only an issue of given status."
complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:project_issues -d "Retrieve issue from GitHub."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -l noprogress -d "Don't use a progress bar."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -l all -d "Process all issues."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -l issue -d "Process only a single issue."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -l range_from -d "First issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -l range_to -d "Last issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -s f -l force -d "Force an update even if the issue has not changed."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_issues' -l status -d "Process only an issue of given status."
complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:project_labels -d "Retrieve project labels from GitHub."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -l noprogress -d "Don't use a progress bar."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -l all -d "Process all issues."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -l issue -d "Process only a single issue."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -l range_from -d "First issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -l range_to -d "Last issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -s f -l force -d "Force an update even if the issue has not changed."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_labels' -l status -d "Process only an issue of given status."
complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:project_milestones -d "Retrieve project milestones from GitHub."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -l noprogress -d "Don't use a progress bar."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -l all -d "Process all issues."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -l issue -d "Process only a single issue."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -l range_from -d "First issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -l range_to -d "Last issue to process."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -s f -l force -d "Force an update even if the issue has not changed."
complete -f -c jtracker -n '__fish_jtracker_using_action get:project_milestones' -l status -d "Process only an issue of given status."
complete -f -c jtracker -n '__fish_jtracker_using_command' -a get:users -d "Retrieve user info from GitHub."
complete -f -c jtracker -n '__fish_jtracker_using_action get:users' -s p -l project -d "Process the project with the given ID."
complete -f -c jtracker -n '__fish_jtracker_using_action get:users' -l noprogress -d "Don't use a progress bar."
Expand Down

0 comments on commit 1a28aa3

Please sign in to comment.