Skip to content

Commit

Permalink
Add annotation to remaining commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ksassnowski committed Jun 22, 2022
1 parent fe93506 commit 95ed25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Shell/Commands/FetchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
use Psy\Shell;
use RoachPHP\Http\Request;
use RoachPHP\Http\Response;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(name: 'fetch')]
final class FetchCommand extends Command
{
protected static $defaultName = 'fetch';
Expand Down
2 changes: 2 additions & 0 deletions src/Shell/Repl.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Psy\Shell;
use RoachPHP\Http\Response;
use RoachPHP\Shell\Commands\FetchCommand;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputArgument;
Expand All @@ -25,6 +26,7 @@
use Symfony\Component\DomCrawler\Crawler;
use Symfony\Component\DomCrawler\Link;

#[AsCommand(name: 'roach:shell')]
final class Repl extends Command
{
protected static $defaultName = 'roach:shell';
Expand Down

0 comments on commit 95ed25b

Please sign in to comment.