PHP 8.2.31
Preview: ProcessConfigureDecorator.php Size: 1.91 KB
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Console/ProcessConfigureDecorator.php

<?php

declare (strict_types=1);
namespace Rector\Console;

use Rector\ChangesReporting\Output\ConsoleOutputFormatter;
use Rector\Configuration\Option;
use RectorPrefix202411\Symfony\Component\Console\Command\Command;
use RectorPrefix202411\Symfony\Component\Console\Input\InputArgument;
use RectorPrefix202411\Symfony\Component\Console\Input\InputOption;
final class ProcessConfigureDecorator
{
    public static function decorate(Command $command) : void
    {
        $command->addArgument(Option::SOURCE, InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Files or directories to be upgraded.');
        $command->addOption(Option::DRY_RUN, Option::DRY_RUN_SHORT, InputOption::VALUE_NONE, 'Only see the diff of changes, do not save them to files.');
        $command->addOption(Option::AUTOLOAD_FILE, Option::AUTOLOAD_FILE_SHORT, InputOption::VALUE_REQUIRED, 'Path to file with extra autoload (will be included)');
        $command->addOption(Option::NO_PROGRESS_BAR, null, InputOption::VALUE_NONE, 'Hide progress bar. Useful e.g. for nicer CI output.');
        $command->addOption(Option::NO_DIFFS, null, InputOption::VALUE_NONE, 'Hide diffs of changed files. Useful e.g. for nicer CI output.');
        $command->addOption(Option::OUTPUT_FORMAT, null, InputOption::VALUE_REQUIRED, 'Select output format', ConsoleOutputFormatter::NAME);
        $command->addOption(Option::DEBUG, null, InputOption::VALUE_NONE, 'Display debug output.');
        $command->addOption(Option::MEMORY_LIMIT, null, InputOption::VALUE_REQUIRED, 'Memory limit for process');
        $command->addOption(Option::CLEAR_CACHE, null, InputOption::VALUE_NONE, 'Clear unchanged files cache');
        $command->addOption(Option::PARALLEL_PORT, null, InputOption::VALUE_REQUIRED);
        $command->addOption(Option::PARALLEL_IDENTIFIER, null, InputOption::VALUE_REQUIRED);
        $command->addOption(Option::XDEBUG, null, InputOption::VALUE_NONE, 'Display xdebug output.');
    }
}

Directory Contents

Dirs: 4 × Files: 4

Name Size Perms Modified Actions
Command DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Formatter DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Output DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Style DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
3.78 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
388 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.23 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.91 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).