• 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/PluginList.php
1
<?php
2

3
namespace Miaoxing\Plugin\Command;
4

5
use Symfony\Component\Console\Helper\Table;
6
use Symfony\Component\Console\Input\InputArgument;
7

8
/**
9
 * @mixin \AppMixin
10
 * @mixin \PluginMixin
11
 */
12
class PluginList extends BaseCommand
13
{
14
    /**
15
     * Execute the console command.
16
     *
17
     * @return void
18
     */
19
    public function handle()
20
    {
21
        $this->app->setId($this->getArgument('app'));
×
22

23
        $table = new Table($this->output);
×
24
        $table->setHeaders(['ID', 'Name', 'Version', 'Description', 'Installed']);
×
25

26
        foreach ($this->plugin->getAll() as $row) {
×
27
            $table->addRow($row->toArray() + [
×
28
                    'installed' => $this->plugin->isInstalled($row->getId()) ? 'Y' : 'N',
×
UNCOV
29
                ]);
×
30
        }
31
        $table->render();
×
32
    }
33

34
    protected function configure()
35
    {
36
        $this->setDescription('List the plugins')
×
37
            ->addArgument('app', InputArgument::OPTIONAL, 'The id of the app');
×
38
    }
39
}
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