summaryrefslogtreecommitdiffstats
path: root/lib/Command/ShowFeed.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Command/ShowFeed.php')
-rw-r--r--lib/Command/ShowFeed.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Command/ShowFeed.php b/lib/Command/ShowFeed.php
index 1218279e6..8aace3528 100644
--- a/lib/Command/ShowFeed.php
+++ b/lib/Command/ShowFeed.php
@@ -50,6 +50,9 @@ class ShowFeed extends Command
$this->feedFetcher = $feedFetcher;
}
+ /**
+ * Configure the command
+ */
protected function configure()
{
$this->setName('news:show-feed')
@@ -60,6 +63,14 @@ class ShowFeed extends Command
->addOption('full-text', 'f', InputOption::VALUE_NONE, 'Usa a scraper to get full text');
}
+ /**
+ * Execute the command
+ *
+ * @param InputInterface $input
+ * @param OutputInterface $output
+ *
+ * @return int
+ */
protected function execute(InputInterface $input, OutputInterface $output): int
{
$url = $input->getArgument('feed');