protected function execute(InputInterface $input, OutputInterface $output) { $profileManager = new \AwsInspector\ProfileManager(); $rows = []; foreach ($profileManager->listAllProfiles() as $profileName) { $rows[] = [$profileName]; } $table = new \Symfony\Component\Console\Helper\Table($output); $table->setHeaders(array('Profile Name'))->setRows($rows); $table->render(); }
protected function execute(InputInterface $input, OutputInterface $output) { $profileManager = new \AwsInspector\ProfileManager(); $file = $profileManager->writeProfileToDotEnv($input->getArgument('profile')); $output->writeln('File written: ' . $file); }