Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Oct 24, 2023
1 parent 8b65ae7 commit 262556a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/DetectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Orchestra\DuskUpdater;

use Composer\Semver\Comparator;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand All @@ -12,16 +13,15 @@
/**
* @copyright Originally created by Jonas Staudenmeir: https://github.com/staudenmeir/dusk-updater
*/
#[AsCommand(name: 'detect', description: 'Detect the installed Chrome/Chromium version')]
class DetectCommand extends Command
{
/**
* Configure the command options.
*/
protected function configure(): void
{
$this->setName('detect')
->setDescription('Detect the installed Chrome/Chromium version.')
->addOption('chrome-dir', null, InputOption::VALUE_OPTIONAL, 'Detect the installed Chrome/Chromium version, optionally in a custom path')
$this->addOption('chrome-dir', null, InputOption::VALUE_OPTIONAL, 'Detect the installed Chrome/Chromium version, optionally in a custom path')
->addOption('auto-update', null, InputOption::VALUE_NONE, 'Auto update ChromeDriver binary if outdated');

parent::configure();
Expand Down
6 changes: 3 additions & 3 deletions src/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Exception;
use RuntimeException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand All @@ -13,16 +14,15 @@
/**
* @copyright Originally created by Jonas Staudenmeir: https://github.com/staudenmeir/dusk-updater
*/
#[AsCommand(name: 'update', description: 'Install the ChromeDriver binary')]
class UpdateCommand extends Command
{
/**
* Configure the command options.
*/
protected function configure(): void
{
$this->setName('update')
->setDescription('Install the ChromeDriver binary.')
->addArgument('version', InputArgument::OPTIONAL)
$this->addArgument('version', InputArgument::OPTIONAL)
->addOption('all', null, InputOption::VALUE_NONE, 'Install a ChromeDriver binary for every OS');

parent::configure();
Expand Down

0 comments on commit 262556a

Please sign in to comment.