!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/queuepro/vendor/symfony/console/Command/   drwxrwxr-x
Free 13.24 GB of 57.97 GB (22.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     HelpCommand.php (2.99 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Command;

use 
Symfony\Component\Console\Completion\CompletionInput;
use 
Symfony\Component\Console\Completion\CompletionSuggestions;
use 
Symfony\Component\Console\Descriptor\ApplicationDescription;
use 
Symfony\Component\Console\Helper\DescriptorHelper;
use 
Symfony\Component\Console\Input\InputArgument;
use 
Symfony\Component\Console\Input\InputInterface;
use 
Symfony\Component\Console\Input\InputOption;
use 
Symfony\Component\Console\Output\OutputInterface;

/**
 * HelpCommand displays the help for a given command.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class HelpCommand extends Command
{
    private 
$command;

    
/**
     * {@inheritdoc}
     */
    
protected function configure()
    {
        
$this->ignoreValidationErrors();

        
$this
            
->setName('help')
            ->
setDefinition([
                new 
InputArgument('command_name'InputArgument::OPTIONAL'The command name''help'),
                new 
InputOption('format'nullInputOption::VALUE_REQUIRED'The output format (txt, xml, json, or md)''txt'),
                new 
InputOption('raw'nullInputOption::VALUE_NONE'To output raw command help'),
            ])
            ->
setDescription('Display help for a command')
            ->
setHelp(<<<'EOF'
The <info>%command.name%</info> command displays help for a given command:

  <info>%command.full_name% list</info>

You can also output the help in other formats by using the <comment>--format</comment> option:

  <info>%command.full_name% --format=xml list</info>

To display the list of available commands, please use the <info>list</info> command.
EOF
            )
        ;
    }

    public function 
setCommand(Command $command)
    {
        
$this->command $command;
    }

    
/**
     * {@inheritdoc}
     */
    
protected function execute(InputInterface $inputOutputInterface $output): int
    
{
        
$this->command ??= $this->getApplication()->find($input->getArgument('command_name'));

        
$helper = new DescriptorHelper();
        
$helper->describe($output$this->command, [
            
'format' => $input->getOption('format'),
            
'raw_text' => $input->getOption('raw'),
        ]);

        unset(
$this->command);

        return 
0;
    }

    public function 
complete(CompletionInput $inputCompletionSuggestions $suggestions): void
    
{
        if (
$input->mustSuggestArgumentValuesFor('command_name')) {
            
$descriptor = new ApplicationDescription($this->getApplication());
            
$suggestions->suggestValues(array_keys($descriptor->getCommands()));

            return;
        }

        if (
$input->mustSuggestOptionValuesFor('format')) {
            
$helper = new DescriptorHelper();
            
$suggestions->suggestValues($helper->getFormats());
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]--