update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
11
vendor/psy/psysh/src/Command/HistoryCommand.php
vendored
11
vendor/psy/psysh/src/Command/HistoryCommand.php
vendored
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
* This file is part of Psy Shell.
|
||||
*
|
||||
* (c) 2012-2025 Justin Hileman
|
||||
* (c) 2012-2026 Justin Hileman
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
@@ -13,8 +13,9 @@
|
||||
|
||||
use Psy\ConfigPaths;
|
||||
use Psy\Input\FilterOptions;
|
||||
use Psy\Output\ShellOutput;
|
||||
use Psy\Output\ShellOutputAdapter;
|
||||
use Psy\Readline\Readline;
|
||||
use Psy\Readline\ReadlineAware;
|
||||
use Symfony\Component\Console\Formatter\OutputFormatter;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
@@ -25,7 +26,7 @@
|
||||
*
|
||||
* Shows, searches and replays readline history. Not too shabby.
|
||||
*/
|
||||
class HistoryCommand extends Command
|
||||
class HistoryCommand extends Command implements ReadlineAware
|
||||
{
|
||||
private FilterOptions $filter;
|
||||
private Readline $readline;
|
||||
@@ -151,12 +152,12 @@ protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
$this->clearHistory();
|
||||
$output->writeln('<info>History cleared.</info>');
|
||||
} else {
|
||||
$type = $input->getOption('no-numbers') ? 0 : ShellOutput::NUMBER_LINES;
|
||||
$type = $input->getOption('no-numbers') ? 0 : ShellOutputAdapter::NUMBER_LINES;
|
||||
if (!$highlighted) {
|
||||
$type = $type | OutputInterface::OUTPUT_RAW;
|
||||
}
|
||||
|
||||
$output->page($highlighted ?: $history, $type);
|
||||
$this->shellOutput($output)->page($highlighted ?: $history, $type);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user