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

JBZoo / Cli / 5840386379

pending completion
5840386379

push

github

web-flow
Predefined output formats - ELK, cron. New demo and docs. (#15)

745 of 745 new or added lines in 16 files covered. (100.0%)

899 of 1078 relevant lines covered (83.4%)

136.5 hits per line

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

76.92
/src/OutputMods/Cron.php
1
<?php
2

3
/**
4
 * JBZoo Toolbox - Cli.
5
 *
6
 * This file is part of the JBZoo Toolbox project.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT
11
 * @copyright  Copyright (C) JBZoo.com, All rights reserved.
12
 * @see        https://github.com/JBZoo/Cli
13
 */
14

15
declare(strict_types=1);
16

17
namespace JBZoo\Cli\OutputMods;
18

19
use JBZoo\Cli\CliApplication;
20
use Symfony\Component\Console\Input\InputInterface;
21
use Symfony\Component\Console\Output\OutputInterface;
22

23
class Cron extends Text
24
{
25
    public function __construct(InputInterface $input, OutputInterface $output, CliApplication $application)
26
    {
27
        $output->getFormatter()->setDecorated(false);
16✔
28
        if ($output->getVerbosity() < OutputInterface::VERBOSITY_VERY_VERBOSE) {
16✔
29
            $output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
16✔
30
        }
31

32
        parent::__construct($input, $output, $application);
16✔
33
    }
34

35
    public function isStdoutOnly(): bool
36
    {
37
        return true;
16✔
38
    }
39

40
    public function isDisplayProfiling(): bool
41
    {
42
        return true;
16✔
43
    }
44

45
    public function isDisplayTimestamp(): bool
46
    {
47
        return true;
16✔
48
    }
49

50
    public function isInfoLevel(): bool
51
    {
52
        return true;
×
53
    }
54

55
    public function isWarningLevel(): bool
56
    {
57
        return true;
×
58
    }
59

60
    public function isProgressBarDisabled(): bool
61
    {
62
        return true;
×
63
    }
64

65
    public static function getName(): string
66
    {
67
        return 'cron';
572✔
68
    }
69

70
    public static function getDescription(): string
71
    {
72
        return "Shortcut for crontab. It's basically focused on human-readable logs output.\n"
286✔
73
            . " It's combination of <info>--timestamp --profile --stdout-only --no-progress -vv</info>.";
286✔
74
    }
75
}
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