N98\Magento\Command\Config\GetCommand::renderAsMagerunScript PHP Method

renderAsMagerunScript() protected method

protected renderAsMagerunScript ( Symfony\Component\Console\Output\OutputInterface $output, array $table )
$output Symfony\Component\Console\Output\OutputInterface
$table array
    protected function renderAsMagerunScript(OutputInterface $output, $table)
    {
        foreach ($table as $row) {
            $value = str_replace(array("\n", "\r"), array('\\n', '\\r'), $row['value']);
            $line = sprintf('config:set --scope-id=%s --scope=%s -- %s %s', $row['scope_id'], $row['scope'], escapeshellarg($row['path']), escapeshellarg($value));
            $output->writeln($line);
        }
    }