Skip to content

Commit 7ca18de

Browse files
committed
[style] Separate command help from option chains (#185)
1 parent 20d42ec commit 7ca18de

20 files changed

Lines changed: 20 additions & 0 deletions

src/Console/Command/AgentsCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function __construct(
6363
protected function configure(): void
6464
{
6565
$this->setHelp('This command ensures the consumer repository contains linked Fast Forward project agents by creating symlinks to the packaged prompts and removing broken links.');
66+
6667
$this->addJsonOption();
6768
}
6869

src/Console/Command/ChangelogCheckCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function __construct(
6161
protected function configure(): void
6262
{
6363
$this->setHelp('This command validates the current Unreleased section and may compare it against a base git reference to enforce pull request changelog updates.');
64+
6465
$this->addJsonOption()
6566
->addOption(
6667
name: 'against',

src/Console/Command/ChangelogEntryCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function __construct(
6464
protected function configure(): void
6565
{
6666
$this->setHelp('This command appends one categorized changelog entry to the selected changelog file so it can be reused by local authoring flows and skills.');
67+
6768
$this->addJsonOption()
6869
->addArgument(
6970
name: 'message',

src/Console/Command/ChangelogNextVersionCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function __construct(
6262
protected function configure(): void
6363
{
6464
$this->setHelp('This command inspects Unreleased changelog categories and prints the next semantic version inferred from the current changelog state.');
65+
6566
$this->addJsonOption()
6667
->addOption(
6768
name: 'file',

src/Console/Command/ChangelogPromoteCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function __construct(
6666
protected function configure(): void
6767
{
6868
$this->setHelp('This command moves the current Unreleased entries into a released version section, records the release date, and restores an empty Unreleased section.');
69+
6970
$this->addJsonOption()
7071
->addArgument(
7172
name: 'version',

src/Console/Command/ChangelogShowCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function __construct(
6363
protected function configure(): void
6464
{
6565
$this->setHelp('This command renders the body of one released changelog section so it can be reused for GitHub release notes.');
66+
6667
$this->addJsonOption()
6768
->addArgument(
6869
name: 'version',

src/Console/Command/CodeOwnersCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function __construct(
6767
protected function configure(): void
6868
{
6969
$this->setHelp('This command infers CODEOWNERS entries from composer.json metadata, falls back to a commented template, and supports drift-aware preview and overwrite flows.');
70+
7071
$this->addJsonOption()
7172
->addOption(
7273
name: 'file',

src/Console/Command/CodeStyleCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public function __construct(
8383
protected function configure(): void
8484
{
8585
$this->setHelp('This command runs EasyCodingStandard and Composer Normalize to check and fix code style issues.');
86+
8687
$this->addJsonOption()
8788
->addOption(
8889
name: 'progress',

src/Console/Command/CopyResourceCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function __construct(
7171
protected function configure(): void
7272
{
7373
$this->setHelp('This command copies a configured source file or every file in a source directory into the target path.');
74+
7475
$this->addJsonOption()
7576
->addOption(
7677
name: 'source',

src/Console/Command/DependenciesCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public function __construct(
7676
protected function configure(): void
7777
{
7878
$this->setHelp('This command runs composer-dependency-analyser and Jack to report missing, unused, misplaced, and outdated Composer dependencies.');
79+
7980
$this->addJsonOption()
8081
->addOption(
8182
name: 'max-outdated',

0 commit comments

Comments
 (0)