Removed old command aliases

This commit is contained in:
Alejandro Celaya 2019-12-31 16:08:08 +01:00
parent 5c90a7c7a7
commit f99ca464de
7 changed files with 17 additions and 33 deletions

View File

@ -274,26 +274,22 @@ Available commands:
api-key:disable Disables an API key. api-key:disable Disables an API key.
api-key:generate Generates a new valid API key. api-key:generate Generates a new valid API key.
api-key:list Lists all the available API keys. api-key:list Lists all the available API keys.
config
config:generate-charset [DEPRECATED] Generates a character set sample just by shuffling the default one, "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ". Then it can be set in the SHORTCODE_CHARS environment variable
config:generate-secret [DEPRECATED] Generates a random secret string that can be used for JWT token encryption
db db
db:create Creates the database needed for shlink to work. It will do nothing if the database already exists db:create Creates the database needed for shlink to work. It will do nothing if the database already exists
db:migrate Runs database migrations, which will ensure the shlink database is up to date. db:migrate Runs database migrations, which will ensure the shlink database is up to date.
short-url short-url
short-url:delete [short-code:delete] Deletes a short URL short-url:delete Deletes a short URL
short-url:generate [shortcode:generate|short-code:generate] Generates a short URL for provided long URL and returns it short-url:generate Generates a short URL for provided long URL and returns it
short-url:list [shortcode:list|short-code:list] List all short URLs short-url:list List all short URLs
short-url:parse [shortcode:parse|short-code:parse] Returns the long URL behind a short code short-url:parse Returns the long URL behind a short code
short-url:visits [shortcode:visits|short-code:visits] Returns the detailed visits information for provided short code short-url:visits Returns the detailed visits information for provided short code
tag tag
tag:create Creates one or more tags. tag:create Creates one or more tags.
tag:delete Deletes one or more tags. tag:delete Deletes one or more tags.
tag:list Lists existing tags. tag:list Lists existing tags.
tag:rename Renames one existing tag. tag:rename Renames one existing tag.
visit visit
visit:locate [visit:process] Resolves visits origin locations. visit:locate Resolves visits origin locations.
visit:update-db [DEPRECATED] Updates the GeoLite2 database file used to geolocate IP addresses
``` ```
> This product includes GeoLite2 data created by MaxMind, available from [https://www.maxmind.com](https://www.maxmind.com) > This product includes GeoLite2 data created by MaxMind, available from [https://www.maxmind.com](https://www.maxmind.com)

View File

@ -19,7 +19,6 @@ use function sprintf;
class DeleteShortUrlCommand extends Command class DeleteShortUrlCommand extends Command
{ {
public const NAME = 'short-url:delete'; public const NAME = 'short-url:delete';
private const ALIASES = ['short-code:delete'];
private DeleteShortUrlServiceInterface $deleteShortUrlService; private DeleteShortUrlServiceInterface $deleteShortUrlService;
@ -33,7 +32,6 @@ class DeleteShortUrlCommand extends Command
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Deletes a short URL') ->setDescription('Deletes a short URL')
->addArgument('shortCode', InputArgument::REQUIRED, 'The short code for the short URL to be deleted') ->addArgument('shortCode', InputArgument::REQUIRED, 'The short code for the short URL to be deleted')
->addOption( ->addOption(

View File

@ -26,7 +26,6 @@ use function sprintf;
class GenerateShortUrlCommand extends Command class GenerateShortUrlCommand extends Command
{ {
public const NAME = 'short-url:generate'; public const NAME = 'short-url:generate';
private const ALIASES = ['shortcode:generate', 'short-code:generate'];
private UrlShortenerInterface $urlShortener; private UrlShortenerInterface $urlShortener;
private array $domainConfig; private array $domainConfig;
@ -42,7 +41,6 @@ class GenerateShortUrlCommand extends Command
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Generates a short URL for provided long URL and returns it') ->setDescription('Generates a short URL for provided long URL and returns it')
->addArgument('longUrl', InputArgument::REQUIRED, 'The long URL to parse') ->addArgument('longUrl', InputArgument::REQUIRED, 'The long URL to parse')
->addOption( ->addOption(

View File

@ -22,7 +22,6 @@ use function Functional\select_keys;
class GetVisitsCommand extends AbstractWithDateRangeCommand class GetVisitsCommand extends AbstractWithDateRangeCommand
{ {
public const NAME = 'short-url:visits'; public const NAME = 'short-url:visits';
private const ALIASES = ['shortcode:visits', 'short-code:visits'];
private VisitsTrackerInterface $visitsTracker; private VisitsTrackerInterface $visitsTracker;
@ -36,7 +35,6 @@ class GetVisitsCommand extends AbstractWithDateRangeCommand
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setAliases(self::ALIASES)
->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');
} }

View File

@ -32,7 +32,6 @@ class ListShortUrlsCommand extends AbstractWithDateRangeCommand
use PaginatorUtilsTrait; use PaginatorUtilsTrait;
public const NAME = 'short-url:list'; public const NAME = 'short-url:list';
private const ALIASES = ['shortcode:list', 'short-code:list'];
private const COLUMNS_WHITELIST = [ private const COLUMNS_WHITELIST = [
'shortCode', 'shortCode',
'shortUrl', 'shortUrl',
@ -56,7 +55,6 @@ class ListShortUrlsCommand extends AbstractWithDateRangeCommand
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('List all short URLs') ->setDescription('List all short URLs')
->addOption( ->addOption(
'page', 'page',

View File

@ -19,7 +19,6 @@ use function sprintf;
class ResolveUrlCommand extends Command class ResolveUrlCommand extends Command
{ {
public const NAME = 'short-url:parse'; public const NAME = 'short-url:parse';
private const ALIASES = ['shortcode:parse', 'short-code:parse'];
private UrlShortenerInterface $urlShortener; private UrlShortenerInterface $urlShortener;
@ -33,7 +32,6 @@ class ResolveUrlCommand extends Command
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Returns the long URL behind a short code') ->setDescription('Returns the long URL behind a short code')
->addArgument('shortCode', InputArgument::REQUIRED, 'The short code to parse') ->addArgument('shortCode', InputArgument::REQUIRED, 'The short code to parse')
->addOption('domain', 'd', InputOption::VALUE_REQUIRED, 'The domain to which the short URL is attached.'); ->addOption('domain', 'd', InputOption::VALUE_REQUIRED, 'The domain to which the short URL is attached.');

View File

@ -30,7 +30,6 @@ use function sprintf;
class LocateVisitsCommand extends AbstractLockedCommand class LocateVisitsCommand extends AbstractLockedCommand
{ {
public const NAME = 'visit:locate'; public const NAME = 'visit:locate';
public const ALIASES = ['visit:process'];
private VisitServiceInterface $visitService; private VisitServiceInterface $visitService;
private IpLocationResolverInterface $ipLocationResolver; private IpLocationResolverInterface $ipLocationResolver;
@ -55,7 +54,6 @@ class LocateVisitsCommand extends AbstractLockedCommand
{ {
$this $this
->setName(self::NAME) ->setName(self::NAME)
->setAliases(self::ALIASES)
->setDescription('Resolves visits origin locations.'); ->setDescription('Resolves visits origin locations.');
} }