• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / plugin / 3766633246

pending completion
3766633246

push

github

twinh
feat(plugin): `BasePage` 增加 `pageInit` 事件

0 of 1 new or added line in 1 file covered. (0.0%)

84 existing lines in 24 files now uncovered.

902 of 2275 relevant lines covered (39.65%)

19.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Command/SeederRun.php
1
<?php
2

3
namespace Miaoxing\Plugin\Command;
4

5
use Miaoxing\Plugin\Service\Seeder;
6
use Symfony\Component\Console\Input\InputArgument;
7
use Symfony\Component\Console\Input\InputOption;
8

9
class SeederRun extends BaseCommand
10
{
11
    /**
12
     * {@inheritdoc}
13
     */
14
    public function handle()
15
    {
16
        if ($this->getArgument('name') && $this->getOption('from')) {
×
17
            return $this->err('--from option cannot use with seeder name');
×
18
        }
19

20
        Seeder::setOutput($this->output)->run([
×
21
            'name' => $this->getArgument('name'),
×
22
            'from' => $this->getOption('from'),
×
UNCOV
23
        ]);
×
24
    }
25

26
    protected function configure()
27
    {
28
        $this->setDescription('Run the seeders')
×
29
            ->setAliases(['seed'])
×
30
            ->addArgument('name', InputArgument::OPTIONAL, 'The name of the seeder')
×
31
            ->addOption(
×
UNCOV
32
                'from',
×
UNCOV
33
                null,
×
UNCOV
34
                InputOption::VALUE_REQUIRED,
×
UNCOV
35
                'From which seeder to run, specify "root" to run all seeders'
×
UNCOV
36
            );
×
37
    }
38
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc