protected function execute(InputInterface $input, OutputInterface $output)
 {
     $roles = Util::assumedRoles();
     if (!$output->isQuiet()) {
         dump($roles);
     }
     return $roles;
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $this->progress = new ProgressBar($output);
     $this->progress->setFormat('%message%');
     $this->progress->start();
     $this->progress->setMessage("Fetching assumed roles...");
     $roles = Util::assumedRoles();
     $regions = $this->getRegions();
     $instances = $this->getInstancesData($regions);
     foreach ($roles as $role) {
         $c = $this->getCredentials($role);
         $credentials = new Credentials($c['AccessKeyId'], $c['SecretAccessKey'], $c['SessionToken'], $c['Expiration']);
         $instances = array_merge($instances, $this->getInstancesData($regions, $credentials));
     }
     $this->progress->finish();
     $this->progress->setMessage("Fetching regions...");
     $output->writeln("\n");
     if ($input->getOption('file') === FALSE) {
         $this->dumpTable($output, $instances);
     } else {
         $this->dumpToFile($input->getOption('file'), $instances);
     }
 }