%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/water/vendor/codeception/codeception/src/Codeception/Command/ |
Upload File : |
<?php namespace Codeception\Command; if (!class_exists('Stecman\Component\Symfony\Console\BashCompletion\Completion')) { echo "Please install `stecman/symfony-console-completion\n` to enable auto completion"; return; } use Codeception\Configuration; use Stecman\Component\Symfony\Console\BashCompletion\Completion as ConsoleCompletion; use Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand; use Stecman\Component\Symfony\Console\BashCompletion\CompletionHandler; use Stecman\Component\Symfony\Console\BashCompletion\Completion\ShellPathCompletion; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class Completion extends CompletionCommand { protected function configureCompletion(CompletionHandler $handler) { // Can't set for all commands, because it wouldn't work well with generate:suite $suiteCommands = [ 'run', 'config:validate', 'console', 'dry-run', 'generate:cept', 'generate:cest', 'generate:feature', 'generate:phpunit', 'generate:scenarios', 'generate:stepobject', 'generate:test', 'gherkin:snippets', 'gherkin:steps' ]; foreach ($suiteCommands as $suiteCommand) { $handler->addHandler(new ConsoleCompletion( $suiteCommand, 'suite', ConsoleCompletion::TYPE_ARGUMENT, Configuration::suites() )); } $handler->addHandlers([ new ShellPathCompletion( ConsoleCompletion::ALL_COMMANDS, 'path', ConsoleCompletion::TYPE_ARGUMENT ), new ShellPathCompletion( ConsoleCompletion::ALL_COMMANDS, 'test', ConsoleCompletion::TYPE_ARGUMENT ), ]); } protected function execute(InputInterface $input, OutputInterface $output) { if ($input->getOption('generate-hook') && $input->getOption('use-vendor-bin')) { global $argv; $argv[0] = 'vendor/bin/' . basename($argv[0]); } parent::execute($input, $output); return 0; } protected function createDefinition() { $definition = parent::createDefinition(); $definition->addOption(new InputOption( 'use-vendor-bin', null, InputOption::VALUE_NONE, 'Use the vendor bin for autocompletion.' )); return $definition; } }