Skip to content

Commit e1a1b41

Browse files
committed
feat: move descriptions to attribute
1 parent 6e8e005 commit e1a1b41

9 files changed

+11
-153
lines changed

.gitpod.Dockerfile

-29
This file was deleted.

.gitpod.yml

-111
This file was deleted.

CHANGELOG_en-GB.md CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.0
2+
3+
- Shopware 6.5 compatibility
4+
15
# 0.3.6
26

37
- Updated psysh package

src/Command/ExtendTemplate.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\Console\Style\SymfonyStyle;
1515
use Symfony\Component\Filesystem\Filesystem;
1616

17-
#[AsCommand('frosh:extend:template')]
17+
#[AsCommand('frosh:extend:template', description: 'Generates the template extension for you')]
1818
class ExtendTemplate extends Command
1919
{
2020
private readonly CacheClearer $cacheClearer;
@@ -28,7 +28,6 @@ public function __construct(private readonly BlockCollector $blockCollector, pri
2828
protected function configure()
2929
{
3030
$this
31-
->setDescription('Generates the template extension for you')
3231
->addArgument('pluginName', InputArgument::REQUIRED, 'Plugin Name');
3332
}
3433

src/Command/MakeDefinition.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Console\Output\OutputInterface;
1616
use Symfony\Component\Console\Style\SymfonyStyle;
1717

18-
#[AsCommand('frosh:make:definition')]
18+
#[AsCommand('frosh:make:definition', description: 'Generates an entity')]
1919
class MakeDefinition extends Command
2020
{
2121
public function __construct(
@@ -31,7 +31,7 @@ public function __construct(
3131

3232
protected function configure(): void
3333
{
34-
$this->setDescription('Generates an entity')
34+
$this
3535
->addArgument('namespace', InputArgument::REQUIRED, 'Namespace (FroshTest\\Content\\Store)');
3636
}
3737

src/Command/MakeMigration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Console\Style\SymfonyStyle;
1616
use Symfony\Component\Filesystem\Filesystem;
1717

18-
#[AsCommand('frosh:make:migration')]
18+
#[AsCommand('frosh:make:migration', description: 'Generates a migration')]
1919
class MakeMigration extends Command
2020
{
2121
private readonly DefinitionInstanceRegistry $definitionInstanceRegistry;

src/Command/MakePlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Symfony\Component\Console\Style\SymfonyStyle;
1212
use Symfony\Component\Filesystem\Filesystem;
1313

14-
#[AsCommand('frosh:make:plugin')]
14+
#[AsCommand('frosh:make:plugin', description: 'Generates a plugin')]
1515
class MakePlugin extends Command
1616
{
1717
private readonly string $pluginFolderDir;

src/Command/SchemaDiff.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212

13-
#[AsCommand('frosh:schema:diff')]
13+
#[AsCommand('frosh:schema:diff', description: 'Diffs the database structure with the known definitions')]
1414
class SchemaDiff extends Command
1515
{
1616
private readonly Connection $connection;
@@ -21,11 +21,6 @@ public function __construct(private readonly MigrationSchemaBuilder $builder, Co
2121
$this->connection = $connection;
2222
}
2323

24-
public function configure(): void
25-
{
26-
$this->setDescription('Diffs the database structure with the known definitions');
27-
}
28-
2924
protected function execute(InputInterface $input, OutputInterface $output): int
3025
{
3126
$localSchema = $this->builder->build();

src/Command/Tinker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
1212

13-
#[AsCommand('tinker')]
13+
#[AsCommand('tinker', description: 'Starts a tinker session')]
1414
class Tinker extends Command
1515
{
1616
protected function configure(): void

0 commit comments

Comments
 (0)