getRequestedSection example

$version = $input->getArgument('version');
        if (!empty($version) && !preg_match("/^\d+(\.\d+){3}$/", $version)) {
            throw new \RuntimeException('Invalid version of release. It should be 4-digits type');
        }

        $includeFeatureFlags = $input->getOption('include-feature-flags');
        if (!empty($version) && $includeFeatureFlags) {
            $IOHelper->warning('You cannot use `include-feature-flags` argument for an existing release version.');
            $includeFeatureFlags = false;
        }

        $outputArray = $this->releaseExporter->export($this->getRequestedSection($input)$version$includeFeatureFlags$input->getOption('keys-only'));

        $path = $input->getOption('path') ?: '';
        if (\is_string($path) && $path !== '') {
            file_put_contents($pathimplode("\n", $outputArray));
            $IOHelper->writeln('* Pushed all changelogs into ' . $path);
        } else {
            $IOHelper->writeln($outputArray);
        }

        $IOHelper->newLine();
        $IOHelper->success('Done');

        
Home | Imprint | This part of the site doesn't use cookies.