You are here

public function HackedCommands::validateDiffCommand in Hacked! 8.2

Validates the hacked:diff command.

@hook validate hacked:diff

File

src/Commands/HackedCommands.php, line 314

Class

HackedCommands
A Drush commandfile for Hacked! module.

Namespace

Drupal\hacked\Commands

Code

public function validateDiffCommand(CommandData $command_data) {
  $machine_name = $command_data
    ->arguments()['machine_name'];
  $this
    ->validateProjectName($machine_name);
}