Skip to content

ChangelogPromoteCommand

github-actions edited this page Apr 22, 2026 · 1 revision

Promotes the Unreleased section into a published changelog version.


Methods

__construct

public __construct(\FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \FastForward\DevTools\Changelog\Manager\ChangelogManagerInterface $changelogManager, \Psr\Clock\ClockInterface $clock, \Psr\Log\LoggerInterface $logger): mixed

Parameters:

Parameter Type Description
$filesystem \FastForward\DevTools\Filesystem\FilesystemInterface
$changelogManager \FastForward\DevTools\Changelog\Manager\ChangelogManagerInterface
$clock \Psr\Clock\ClockInterface
$logger \Psr\Log\LoggerInterface

configure

Configures the promotion arguments and options.

protected configure(): void

execute

Promotes unreleased entries into the requested version section.

protected execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output): int

Parameters:

Parameter Type Description
$input \Symfony\Component\Console\Input\InputInterface
$output \Symfony\Component\Console\Output\OutputInterface

Inherited methods

addJsonOption

Adds the standard JSON output options to the current command.

protected addJsonOption(): static

isJsonOutput

Determines whether JSON output was requested.

protected isJsonOutput(\Symfony\Component\Console\Input\InputInterface $input): bool

The pretty-json flag SHALL imply JSON output.

Parameters:

Parameter Type Description
$input \Symfony\Component\Console\Input\InputInterface

isPrettyJsonOutput

Determines whether pretty JSON output was requested.

protected isPrettyJsonOutput(\Symfony\Component\Console\Input\InputInterface $input): bool

Parameters:

Parameter Type Description
$input \Symfony\Component\Console\Input\InputInterface

Clone this wiki locally