芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/codeception/codeception/src/Codeception/Command/Completion.php
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; } }