LazyRecord\Command\DataSourceCommand::execute PHP Method

execute() public method

public execute ( )
    public function execute()
    {
        $configLoader = $this->getConfigLoader(true);
        $dataSources = $configLoader->getDataSources();
        foreach ($dataSources as $id => $config) {
            if ($this->options->verbose) {
                $this->logger->writeln(sprintf('%-10s %s', $id, $config['dsn']));
            } else {
                $this->logger->writeln($id);
            }
        }
    }