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

miaoxing / plugin / 5712595623

pending completion
5712595623

push

github

twinh
feat(plugin): 安装插件时,同时安装依赖的插件

0 of 30 new or added lines in 3 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

918 of 2349 relevant lines covered (39.08%)

18.3 hits per line

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

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

3
namespace Miaoxing\Plugin\Command;
4

5
use Symfony\Component\Console\Input\InputArgument;
6
use Wei\Ret;
7

8
/**
9
 * @mixin \AppMixin
10
 * @mixin \PluginMixin
11
 */
12
class PluginInstall 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
        $ret = $this->plugin->install($this->getArgument('id'));
×
23

24
        /** @var Ret $item */
NEW
25
        foreach ($ret['rets'] ?? [] as $item) {
×
NEW
26
            $this->output->writeln($item->isSuc() ? ('<info>' . $item->getMessage() . '</info>') : $item->getMessage());
×
27
        }
UNCOV
28
        $this->ret($ret);
×
29
    }
30

31
    protected function configure()
32
    {
33
        $this->setDescription('Install the plugin')
×
34
            ->addArgument('id', InputArgument::REQUIRED, 'The id of the plugin')
×
35
            ->addArgument('app', InputArgument::OPTIONAL, 'The id of the app');
×
36
    }
37
}
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