
| Current Path : /var/www/html/sirius-pallets/vendor/drush/drush/src/Attributes/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/sirius-pallets/vendor/drush/drush/src/Attributes/OptionsetSql.php |
<?php
declare(strict_types=1);
namespace Drush\Attributes;
use Attribute;
use Consolidation\AnnotatedCommand\Parser\CommandInfo;
use Drush\Commands\DrushCommands;
#[Attribute(Attribute::TARGET_METHOD)]
class OptionsetSql
{
public static function handle(\ReflectionAttribute $attribute, CommandInfo $commandInfo)
{
$commandInfo->addOption('database', 'The DB connection key if using multiple connections in settings.php.', [], 'default');
$commandInfo->addOption('db-url', 'A Drupal 6 style database URL. For example <info>mysql://root:pass@localhost:port/dbname</info>', [], DrushCommands::REQ);
$commandInfo->addOption('target', 'The name of a target within the specified database connection.', [], 'default');
$commandInfo->addOption('show-passwords', 'Show password on the CLI. Useful for debugging.', [], false);
}
}