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

Jagepard / Rudra-Cli / 15920986328

27 Jun 2025 07:42AM UTC coverage: 4.771% (-95.2%) from 100.0%
15920986328

push

github

web-flow
Merge pull request #29 from Jagepard/wip

adds commands

0 of 479 new or added lines in 20 files covered. (0.0%)

24 of 503 relevant lines covered (4.77%)

0.12 hits per line

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

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

3
namespace Rudra\Cli\Command;
4

5
use Rudra\Cli\Command\ConsoleFacade as Cli;
6

7
class ConsoleCommand
8
{
NEW
9
    public function actionIndex(): void
×
10
    {
NEW
11
        $mask  = "| %-2s | %-22s | %-41s | %-15s |" . PHP_EOL;
×
NEW
12
        $frame = "\e[1;34m+----+------------------------+-------------------------------------------+-----------------+\e[m" . PHP_EOL;
×
13

NEW
14
        echo $frame;
×
NEW
15
        printf("\e[1;95m" . $mask . "\e[m", "#", "Command", "Controller", "Action");
×
NEW
16
        echo $frame;
×
NEW
17
        $this->getTable(Cli::getRegistry(), $mask);
×
NEW
18
        echo $frame;
×
19
    }
20

NEW
21
    protected function getTable(array $data, string $mask): void
×
22
    {
NEW
23
        $i = 1;
×
NEW
24
        $colors = ["\e[0;36m", "\e[0;32m"]; // чередующиеся цвета строк
×
25

NEW
26
        foreach ($data as $name => $routes) {
×
NEW
27
            $color = $colors[($i - 1) % 2];
×
NEW
28
            printf($color . $mask . "\e[m", $i, $name, $routes[0], $routes[1] ?? "actionIndex");
×
NEW
29
            $i++;
×
30
        }
31
    }
32
}
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