Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pkboom committed Jan 7, 2022
1 parent 5a1fb0d commit 89ef6a9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"pkboom/file-watcher": "^0.2.0",
"react/event-loop": "^1.2",
"symfony/console": "^5.0",
"symfony/finder": "^5.0"
"symfony/finder": "^5.4"
},
"require-dev": {
"orchestra/testbench": "^6.23",
Expand Down
2 changes: 1 addition & 1 deletion src/ExecuteCodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class ExecuteCodeCommand extends Command
{
protected $signature = 'process:code {--query}';
protected $signature = 'execute:code {--query}';

public function handle()
{
Expand Down
2 changes: 1 addition & 1 deletion src/TinkerOnVscodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function startWatching()

Loop::addPeriodicTimer(1, function () use ($watcher) {
$watcher->find()->whenChanged(function () {
$command = 'php artisan process:code';
$command = 'php artisan execute:code';

if ($this->option('query')) {
$command .= ' --query';
Expand Down
4 changes: 2 additions & 2 deletions tests/ExecuteCodeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function it_outputs_the_result()
{
file_put_contents(Config::get('tinker-on-vscode.input'), "<?php \$foo = 'foo';");

$this->artisan('process:code')->assertExitCode(0);
$this->artisan('execute:code')->assertExitCode(0);

$output = file_get_contents(Config::get('tinker-on-vscode.output'));

Expand All @@ -34,7 +34,7 @@ public function it_outputs_db_query()

file_put_contents(Config::get('tinker-on-vscode.input'), "<?php \Tests\Models\TestModel::all();");

$this->artisan('process:code --query')->assertExitCode(0);
$this->artisan('execute:code --query')->assertExitCode(0);

$output = file_get_contents(Config::get('tinker-on-vscode.output'));

Expand Down

0 comments on commit 89ef6a9

Please sign in to comment.