mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Added domain flag to GetVisitsCommand
This commit is contained in:
@@ -14,6 +14,7 @@ use Shlinkio\Shlink\Core\Model\VisitsParams;
|
|||||||
use Shlinkio\Shlink\Core\Service\VisitsTrackerInterface;
|
use Shlinkio\Shlink\Core\Service\VisitsTrackerInterface;
|
||||||
use Symfony\Component\Console\Input\InputArgument;
|
use Symfony\Component\Console\Input\InputArgument;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
|
use Symfony\Component\Console\Input\InputOption;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
|
|
||||||
@@ -37,7 +38,8 @@ class GetVisitsCommand extends AbstractWithDateRangeCommand
|
|||||||
$this
|
$this
|
||||||
->setName(self::NAME)
|
->setName(self::NAME)
|
||||||
->setDescription('Returns the detailed visits information for provided short code')
|
->setDescription('Returns the detailed visits information for provided short code')
|
||||||
->addArgument('shortCode', InputArgument::REQUIRED, 'The short code which visits we want to get');
|
->addArgument('shortCode', InputArgument::REQUIRED, 'The short code which visits we want to get')
|
||||||
|
->addOption('domain', 'd', InputOption::VALUE_REQUIRED, 'The domain for the short code');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getStartDateDesc(): string
|
protected function getStartDateDesc(): string
|
||||||
|
|||||||
Reference in New Issue
Block a user