From 89ef6a9a0318106c2fc5b4ac1e4347d2a908da15 Mon Sep 17 00:00:00 2001 From: Keunbae Park Date: Fri, 7 Jan 2022 00:49:48 -0500 Subject: [PATCH] wip --- composer.json | 2 +- src/ExecuteCodeCommand.php | 2 +- src/TinkerOnVscodeCommand.php | 2 +- tests/ExecuteCodeCommandTest.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index a565a20..b7a6e76 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/ExecuteCodeCommand.php b/src/ExecuteCodeCommand.php index 6a1a383..03bf6eb 100644 --- a/src/ExecuteCodeCommand.php +++ b/src/ExecuteCodeCommand.php @@ -15,7 +15,7 @@ class ExecuteCodeCommand extends Command { - protected $signature = 'process:code {--query}'; + protected $signature = 'execute:code {--query}'; public function handle() { diff --git a/src/TinkerOnVscodeCommand.php b/src/TinkerOnVscodeCommand.php index c65cc04..4506e35 100644 --- a/src/TinkerOnVscodeCommand.php +++ b/src/TinkerOnVscodeCommand.php @@ -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'; diff --git a/tests/ExecuteCodeCommandTest.php b/tests/ExecuteCodeCommandTest.php index 29bab4f..460725c 100644 --- a/tests/ExecuteCodeCommandTest.php +++ b/tests/ExecuteCodeCommandTest.php @@ -16,7 +16,7 @@ public function it_outputs_the_result() { file_put_contents(Config::get('tinker-on-vscode.input'), "artisan('process:code')->assertExitCode(0); + $this->artisan('execute:code')->assertExitCode(0); $output = file_get_contents(Config::get('tinker-on-vscode.output')); @@ -34,7 +34,7 @@ public function it_outputs_db_query() file_put_contents(Config::get('tinker-on-vscode.input'), "artisan('process:code --query')->assertExitCode(0); + $this->artisan('execute:code --query')->assertExitCode(0); $output = file_get_contents(Config::get('tinker-on-vscode.output'));