Skip to content

CodeOwnersCommand

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

Generates and synchronizes CODEOWNERS files from local project metadata.


Methods

__construct

Creates a new command instance.

public __construct(\FastForward\DevTools\CodeOwners\CodeOwnersGenerator $generator, \FastForward\DevTools\Filesystem\FilesystemInterface $filesystem, \FastForward\DevTools\Resource\FileDiffer $fileDiffer, \Psr\Log\LoggerInterface $logger): mixed

Parameters:

Parameter Type Description
$generator \FastForward\DevTools\CodeOwners\CodeOwnersGenerator the generator used to infer and render CODEOWNERS contents
$filesystem \FastForward\DevTools\Filesystem\FilesystemInterface the filesystem used to read and write the target file
$fileDiffer \FastForward\DevTools\Resource\FileDiffer the differ used to report managed-file drift
$logger \Psr\Log\LoggerInterface the output-aware logger

configure

{@inheritDoc}

protected configure(): void

execute

Generates or updates the CODEOWNERS file.

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 the command input
$output \Symfony\Component\Console\Output\OutputInterface the command output

Return Value:

the command status code


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