|
2 | 2 |
|
3 | 3 | namespace Aerni\Sync\Commands;
|
4 | 4 |
|
5 |
| -use Aerni\Sync\SyncCommand; |
6 |
| -use Illuminate\Support\Arr; |
7 | 5 | use Aerni\Sync\PathGenerator;
|
| 6 | +use Aerni\Sync\SyncCommand; |
8 | 7 | use Illuminate\Console\Command;
|
9 |
| -use Illuminate\Validation\Rule; |
| 8 | +use Illuminate\Contracts\Console\PromptsForMissingInput; |
| 9 | +use Illuminate\Support\Arr; |
10 | 10 | use Illuminate\Support\Collection;
|
11 |
| -use function Laravel\Prompts\select; |
12 | 11 | use Illuminate\Support\Facades\Validator;
|
| 12 | +use Illuminate\Validation\Rule; |
13 | 13 | use Symfony\Component\Console\Output\OutputInterface;
|
14 |
| -use Illuminate\Contracts\Console\PromptsForMissingInput; |
| 14 | + |
| 15 | +use function Laravel\Prompts\select; |
15 | 16 |
|
16 | 17 | class BaseCommand extends Command implements PromptsForMissingInput
|
17 | 18 | {
|
@@ -55,9 +56,9 @@ protected function validate(): void
|
55 | 56 | 'remote' => ['required', Rule::in(array_keys($this->remotes()))],
|
56 | 57 | 'recipe' => ['required', Rule::in(array_keys($this->recipes()))],
|
57 | 58 | ], [
|
58 |
| - 'operation.in' => "The :attribute [:input] does not exists. Valid values are [push] or [pull].", |
59 |
| - 'remote.in' => "The :attribute [:input] does not exists. Please choose a valid remote.", |
60 |
| - 'recipe.in' => "The :attribute [:input] does not exists. Please choose a valid recipe.", |
| 59 | + 'operation.in' => 'The :attribute [:input] does not exists. Valid values are [push] or [pull].', |
| 60 | + 'remote.in' => 'The :attribute [:input] does not exists. Please choose a valid remote.', |
| 61 | + 'recipe.in' => 'The :attribute [:input] does not exists. Please choose a valid recipe.', |
61 | 62 | ]);
|
62 | 63 |
|
63 | 64 | if ($this->localPathEqualsRemotePath()) {
|
|
0 commit comments