updated-packages
This commit is contained in:
@@ -56,6 +56,8 @@ HELP
|
||||
} else {
|
||||
$output->writeln($this->formatLines($buf), ShellOutput::NUMBER_LINES);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -45,5 +45,7 @@ HELP
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$output->write(\sprintf('%c[2J%c[0;0f', 27, 27));
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
2
vendor/psy/psysh/src/Command/DocCommand.php
vendored
2
vendor/psy/psysh/src/Command/DocCommand.php
vendored
@@ -82,6 +82,8 @@ HELP
|
||||
|
||||
// Set some magic local variables
|
||||
$this->setCommandScopeVariables($reflector);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private function getManualDoc($reflector)
|
||||
|
||||
2
vendor/psy/psysh/src/Command/DumpCommand.php
vendored
2
vendor/psy/psysh/src/Command/DumpCommand.php
vendored
@@ -76,6 +76,8 @@ HELP
|
||||
if (\is_object($target)) {
|
||||
$this->setCommandScopeVariables(new \ReflectionObject($target));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
2
vendor/psy/psysh/src/Command/EditCommand.php
vendored
2
vendor/psy/psysh/src/Command/EditCommand.php
vendored
@@ -104,6 +104,8 @@ class EditCommand extends Command implements ContextAware
|
||||
if ($execute) {
|
||||
$this->getApplication()->addInput($editedContent);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
2
vendor/psy/psysh/src/Command/HelpCommand.php
vendored
2
vendor/psy/psysh/src/Command/HelpCommand.php
vendored
@@ -94,5 +94,7 @@ class HelpCommand extends Command
|
||||
}
|
||||
$output->stopPaging();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,11 +140,13 @@ HELP
|
||||
} else {
|
||||
$type = $input->getOption('no-numbers') ? 0 : ShellOutput::NUMBER_LINES;
|
||||
if (!$highlighted) {
|
||||
$type = $type | ShellOutput::OUTPUT_RAW;
|
||||
$type = $type | OutputInterface::OUTPUT_RAW;
|
||||
}
|
||||
|
||||
$output->page($highlighted ?: $history, $type);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
2
vendor/psy/psysh/src/Command/ListCommand.php
vendored
2
vendor/psy/psysh/src/Command/ListCommand.php
vendored
@@ -142,6 +142,8 @@ HELP
|
||||
if ($reflector !== null) {
|
||||
$this->setCommandScopeVariables($reflector);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -138,6 +138,8 @@ HELP
|
||||
$output->page($this->presenter->present($nodes, $depth));
|
||||
|
||||
$this->context->setReturnValue($nodes);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -37,5 +37,7 @@ class PsyVersionCommand extends Command
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$output->writeln($this->getApplication()->getVersion());
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
13
vendor/psy/psysh/src/Command/ShowCommand.php
vendored
13
vendor/psy/psysh/src/Command/ShowCommand.php
vendored
@@ -18,7 +18,6 @@ use Psy\Exception\RuntimeException;
|
||||
use Psy\Formatter\CodeFormatter;
|
||||
use Psy\Formatter\SignatureFormatter;
|
||||
use Psy\Input\CodeArgument;
|
||||
use Psy\Output\ShellOutput;
|
||||
use Symfony\Component\Console\Formatter\OutputFormatter;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
@@ -99,11 +98,15 @@ HELP
|
||||
throw new \InvalidArgumentException('Too many arguments (supply either "target" or "--ex")');
|
||||
}
|
||||
|
||||
return $this->writeExceptionContext($input, $output);
|
||||
$this->writeExceptionContext($input, $output);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ($input->getArgument('target')) {
|
||||
return $this->writeCodeContext($input, $output);
|
||||
$this->writeCodeContext($input, $output);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
throw new RuntimeException('Not enough arguments (missing: "target")');
|
||||
@@ -117,7 +120,7 @@ HELP
|
||||
$this->setCommandScopeVariables($reflector);
|
||||
|
||||
try {
|
||||
$output->page(CodeFormatter::format($reflector, $this->colorMode), ShellOutput::OUTPUT_RAW);
|
||||
$output->page(CodeFormatter::format($reflector, $this->colorMode), OutputInterface::OUTPUT_RAW);
|
||||
} catch (RuntimeException $e) {
|
||||
$output->writeln(SignatureFormatter::format($reflector));
|
||||
throw $e;
|
||||
@@ -216,7 +219,7 @@ HELP
|
||||
return;
|
||||
}
|
||||
|
||||
$output->write($this->getHighlighter()->getCodeSnippet($code, $line, 5, 5), ShellOutput::OUTPUT_RAW);
|
||||
$output->write($this->getHighlighter()->getCodeSnippet($code, $line, 5, 5), false, OutputInterface::OUTPUT_RAW);
|
||||
}
|
||||
|
||||
private function getHighlighter()
|
||||
|
||||
2
vendor/psy/psysh/src/Command/SudoCommand.php
vendored
2
vendor/psy/psysh/src/Command/SudoCommand.php
vendored
@@ -118,6 +118,8 @@ HELP
|
||||
$sudoCode = $this->printer->prettyPrint($nodes);
|
||||
$shell = $this->getApplication();
|
||||
$shell->addCode($sudoCode, !$shell->hasCode());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -105,6 +105,8 @@ HELP
|
||||
|
||||
$shell = $this->getApplication();
|
||||
$shell->addCode($throwCode, !$shell->hasCode());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -106,6 +106,8 @@ HELP
|
||||
|
||||
$output->writeln(\sprintf(self::AVG_RESULT_MSG, $total / $num, $median, $total));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -74,6 +74,8 @@ HELP
|
||||
$this->filter->bind($input);
|
||||
$trace = $this->getBacktrace(new \Exception(), $input->getOption('num'), $input->getOption('include-psy'));
|
||||
$output->page($trace, ShellOutput::NUMBER_LINES);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,6 @@ namespace Psy\Command;
|
||||
use JakubOnderka\PhpConsoleHighlighter\Highlighter;
|
||||
use Psy\Configuration;
|
||||
use Psy\ConsoleColorFactory;
|
||||
use Psy\Output\ShellOutput;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
@@ -123,8 +122,10 @@ HELP
|
||||
$output->writeln('');
|
||||
$output->writeln(\sprintf('From <info>%s:%s</info>:', $this->replaceCwd($info['file']), $info['line']));
|
||||
$output->writeln('');
|
||||
$output->write($highlighter->getCodeSnippet($contents, $info['line'], $num, $num), ShellOutput::OUTPUT_RAW);
|
||||
$output->write($highlighter->getCodeSnippet($contents, $info['line'], $num, $num), false, OutputInterface::OUTPUT_RAW);
|
||||
$output->stopPaging();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
2
vendor/psy/psysh/src/Command/WtfCommand.php
vendored
2
vendor/psy/psysh/src/Command/WtfCommand.php
vendored
@@ -121,5 +121,7 @@ HELP
|
||||
}
|
||||
} while ($exception = $exception->getPrevious());
|
||||
$output->stopPaging();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user