Skip to content

Commit

Permalink
Merge pull request #2 from mindtwo/use-as-command-attributes
Browse files Browse the repository at this point in the history
add as command attribute to classes
  • Loading branch information
blumewas authored Jul 9, 2024
2 parents a95ceeb + c933be6 commit 810a6cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/Commands/InstallDriversCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
namespace Mindtwo\ValetDrivers\Commands;

use DirectoryIterator;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
name: 'install',
description: 'Effortlessly install custom valet drivers for enhanced development on mindtwo projects.'
)]
class InstallDriversCommand extends BaseCommand
{
/**
* @var string
*/
protected static $defaultName = 'install';

/**
* @var string
*/
Expand Down
15 changes: 5 additions & 10 deletions src/Commands/UninstallDriversCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@
namespace Mindtwo\ValetDrivers\Commands;

use DirectoryIterator;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
name: 'uninstall',
description: 'Effortlessly install custom valet drivers for enhanced development on mindtwo projects.'
)]
class UninstallDriversCommand extends BaseCommand
{
/**
* @var string
*/
protected static $defaultName = 'uninstall';

/**
* @var string
*/
protected static $defaultDescription = 'Removes mindtwo custom valet drivers from both Valet and Herd unless specified otherwise.';

private OutputInterface $output;

protected function configure(): void
Expand Down

0 comments on commit 810a6cd

Please sign in to comment.