Example #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $httpClient = new Client();
     if ($input->getOption('koalamon_server')) {
         $client = new KoalaClient($httpClient, $input->getOption('koalamon_server'));
     } else {
         $client = new KoalaClient($httpClient);
     }
     if ($input->getOption('with-subsystems')) {
         $withSubsystems = true;
     } else {
         $withSubsystems = false;
     }
     $projects = $client->getProjects(new User($input->getArgument('username'), $input->getArgument('api_key')));
     $this->executeProjects($projects, $input->getArgument('exec'), $output, $client, $withSubsystems);
 }