function DevelUuidCommand::execute

File

src/Drush/Commands/DevelUuidCommand.php, line 22

Class

DevelUuidCommand
#[AsCommand(name: self::NAME, description: 'Generate a Universally Unique Identifier (UUID).', aliases: [ 'uuid', 'devel-uuid', ])]

Namespace

Drupal\devel\Drush\Commands

Code

protected function execute(InputInterface $input, OutputInterface $output) : int {
  $uuid = new Php();
  $output->writeln($uuid->generate());
  return Command::SUCCESS;
}