コード例 #1
0
 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();
 }
コード例 #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $profileManager = new \AwsInspector\ProfileManager();
     $file = $profileManager->writeProfileToDotEnv($input->getArgument('profile'));
     $output->writeln('File written: ' . $file);
 }