Example #1
0
 /**
  * @param Client      $client
  * @param OutputStyle $output
  *
  * @throws \Exception
  */
 public function run($client, OutputStyle $output)
 {
     $this->hit_count++;
     $output->success("Running '" . $this->shortcut . "' for the " . $client->ordinal($this->hit_count) . ' time.');
     $command = $client->getSettings()->parseIdentifiers($this->command);
     switch (OS::getType()) {
         case OS::LINUX:
             $output->writeln('cmd:' . $command);
             break;
         case OS::WINDOWS:
             file_put_contents($client->getBatchPath(), $command);
             break;
     }
     $this->save();
 }