Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions src/Concerns/HasOptionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ protected function getArguments(): array
->toArray();
}

protected function availableArguments(): array
{
return [
[
Options::Name,
InputArgument::OPTIONAL,
'The name of the operation',
],
];
}

protected function availableOptions(): array
{
return [
Expand Down Expand Up @@ -103,11 +114,4 @@ protected function availableOptions(): array
],
];
}

protected function availableArguments(): array
{
return [
[Options::Name, InputArgument::OPTIONAL, 'The name of the operation'],
];
}
}
4 changes: 2 additions & 2 deletions src/Services/MutexService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

use Carbon\CarbonInterval;
use DragonCode\LaravelDeployOperations\Console\Command;
use Illuminate\Contracts\Cache\Factory as Cache;
use Illuminate\Contracts\Cache\Factory;
use Illuminate\Contracts\Cache\Repository;

class MutexService
{
protected ?string $store = null;

public function __construct(
protected Cache $cache
protected Factory $cache
) {}

public function create(Command $command): bool
Expand Down