Skip to content

Commit

Permalink
📚 Document and test new artisan tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Nov 15, 2019
1 parent 99dbf53 commit 01a86fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/all-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ php artisan deploy:list namespace # List all tasks starting with `namespace:`
| `artisan:down` | Enable maintenance mode |
| `artisan:event:cache` | Execure artisan event:cache |
| `artisan:event:clear` | Execure artisan event:clear |
| `artisan:horizon:assets` | Execute artisan horizon:assets |
| `artisan:horizon:terminate` | Execute artisan horizon:terminate |
| `artisan:migrate` | Execute artisan migrate |
| `artisan:migrate:fresh` | Execute artisan migrate:fresh |
Expand All @@ -40,6 +41,7 @@ php artisan deploy:list namespace # List all tasks starting with `namespace:`
| `artisan:view:clear` | Execute artisan view:clear |
| `artisan:telescope:clear` | Execute artisan telescope:clear |
| `artisan:telescope:prune` | Execute artisan telescope:prune |
| `artisan:telescope:publish` | Execute artisan telescope:publish |
| `artisan:nova:publish` | Execute artisan nova:publish |
| `config:current` | Show current paths |
| `config:dump` | Print host configuration |
Expand Down
6 changes: 3 additions & 3 deletions src/task/artisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@
desc('Execute artisan horizon:terminate');
task('artisan:horizon:terminate', artisan('horizon:terminate'));

desc('Execute artisan telescope:publish');
task('artisan:telescope:publish', artisan('telescope:publish'));

desc('Execute artisan telescope:clear');
task('artisan:telescope:clear', artisan('telescope:clear'));

desc('Execute artisan telescope:prune');
task('artisan:telescope:prune', artisan('telescope:prune'));

desc('Execute artisan telescope:publish');
task('artisan:telescope:publish', artisan('telescope:publish'));

desc('Execute artisan nova:publish');
task('artisan:nova:publish', artisan('nova:publish'));

Expand Down
2 changes: 2 additions & 0 deletions tests/Features/DeployListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function it_should_list_all_available_tasks()
$this->assertStringContainsString('artisan:config:clear', $output);
$this->assertStringContainsString('artisan:db:seed', $output);
$this->assertStringContainsString('artisan:down', $output);
$this->assertStringContainsString('artisan:horizon:assets', $output);
$this->assertStringContainsString('artisan:horizon:terminate', $output);
$this->assertStringContainsString('artisan:migrate', $output);
$this->assertStringContainsString('artisan:migrate:fresh', $output);
Expand All @@ -45,6 +46,7 @@ function it_should_list_all_available_tasks()
$this->assertStringContainsString('artisan:view:cache', $output);
$this->assertStringContainsString('artisan:telescope:clear', $output);
$this->assertStringContainsString('artisan:telescope:prune', $output);
$this->assertStringContainsString('artisan:telescope:publish', $output);
$this->assertStringContainsString('artisan:nova:publish', $output);
$this->assertStringContainsString('artisan:event:clear', $output);
$this->assertStringContainsString('artisan:event:cache', $output);
Expand Down

0 comments on commit 01a86fa

Please sign in to comment.