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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/symfony/console/Descriptor/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     MarkdownDescriptor.php (6.92 KB)      -rw-r--r--
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\Descriptor;

use 
Symfony\Component\Console\Application;
use 
Symfony\Component\Console\Command\Command;
use 
Symfony\Component\Console\Helper\Helper;
use 
Symfony\Component\Console\Input\InputArgument;
use 
Symfony\Component\Console\Input\InputDefinition;
use 
Symfony\Component\Console\Input\InputOption;
use 
Symfony\Component\Console\Output\OutputInterface;

/**
 * Markdown descriptor.
 *
 * @author Jean-François Simon <contact@jfsimon.fr>
 *
 * @internal
 */
class MarkdownDescriptor extends Descriptor
{
    
/**
     * {@inheritdoc}
     */
    
public function describe(OutputInterface $outputobject $object, array $options = [])
    {
        
$decorated $output->isDecorated();
        
$output->setDecorated(false);

        
parent::describe($output$object$options);

        
$output->setDecorated($decorated);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function write(string $contentbool $decorated true)
    {
        
parent::write($content$decorated);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function describeInputArgument(InputArgument $argument, array $options = [])
    {
        
$this->write(
            
'#### `'.($argument->getName() ?: '<none>')."`\n\n"
            
.($argument->getDescription() ? preg_replace('/\s*[\r\n]\s*/'"\n"$argument->getDescription())."\n\n" '')
            .
'* Is required: '.($argument->isRequired() ? 'yes' 'no')."\n"
            
.'* Is array: '.($argument->isArray() ? 'yes' 'no')."\n"
            
.'* Default: `'.str_replace("\n"''var_export($argument->getDefault(), true)).'`'
        
);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function describeInputOption(InputOption $option, array $options = [])
    {
        
$name '--'.$option->getName();
        if (
$option->isNegatable()) {
            
$name .= '|--no-'.$option->getName();
        }
        if (
$option->getShortcut()) {
            
$name .= '|-'.str_replace('|''|-'$option->getShortcut()).'';
        }

        
$this->write(
            
'#### `'.$name.'`'."\n\n"
            
.($option->getDescription() ? preg_replace('/\s*[\r\n]\s*/'"\n"$option->getDescription())."\n\n" '')
            .
'* Accept value: '.($option->acceptValue() ? 'yes' 'no')."\n"
            
.'* Is value required: '.($option->isValueRequired() ? 'yes' 'no')."\n"
            
.'* Is multiple: '.($option->isArray() ? 'yes' 'no')."\n"
            
.'* Is negatable: '.($option->isNegatable() ? 'yes' 'no')."\n"
            
.'* Default: `'.str_replace("\n"''var_export($option->getDefault(), true)).'`'
        
);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function describeInputDefinition(InputDefinition $definition, array $options = [])
    {
        if (
$showArguments \count($definition->getArguments()) > 0) {
            
$this->write('### Arguments');
            foreach (
$definition->getArguments() as $argument) {
                
$this->write("\n\n");
                if (
null !== $describeInputArgument $this->describeInputArgument($argument)) {
                    
$this->write($describeInputArgument);
                }
            }
        }

        if (
\count($definition->getOptions()) > 0) {
            if (
$showArguments) {
                
$this->write("\n\n");
            }

            
$this->write('### Options');
            foreach (
$definition->getOptions() as $option) {
                
$this->write("\n\n");
                if (
null !== $describeInputOption $this->describeInputOption($option)) {
                    
$this->write($describeInputOption);
                }
            }
        }
    }

    
/**
     * {@inheritdoc}
     */
    
protected function describeCommand(Command $command, array $options = [])
    {
        if (
$options['short'] ?? false) {
            
$this->write(
                
'`'.$command->getName()."`\n"
                
.str_repeat('-'Helper::width($command->getName()) + 2)."\n\n"
                
.($command->getDescription() ? $command->getDescription()."\n\n" '')
                .
'### Usage'."\n\n"
                
.array_reduce($command->getAliases(), function ($carry$usage) {
                    return 
$carry.'* `'.$usage.'`'."\n";
                })
            );

            return;
        }

        
$command->mergeApplicationDefinition(false);

        
$this->write(
            
'`'.$command->getName()."`\n"
            
.str_repeat('-'Helper::width($command->getName()) + 2)."\n\n"
            
.($command->getDescription() ? $command->getDescription()."\n\n" '')
            .
'### Usage'."\n\n"
            
.array_reduce(array_merge([$command->getSynopsis()], $command->getAliases(), $command->getUsages()), function ($carry$usage) {
                return 
$carry.'* `'.$usage.'`'."\n";
            })
        );

        if (
$help $command->getProcessedHelp()) {
            
$this->write("\n");
            
$this->write($help);
        }

        
$definition $command->getDefinition();
        if (
$definition->getOptions() || $definition->getArguments()) {
            
$this->write("\n\n");
            
$this->describeInputDefinition($definition);
        }
    }

    
/**
     * {@inheritdoc}
     */
    
protected function describeApplication(Application $application, array $options = [])
    {
        
$describedNamespace $options['namespace'] ?? null;
        
$description = new ApplicationDescription($application$describedNamespace);
        
$title $this->getApplicationTitle($application);

        
$this->write($title."\n".str_repeat('='Helper::width($title)));

        foreach (
$description->getNamespaces() as $namespace) {
            if (
ApplicationDescription::GLOBAL_NAMESPACE !== $namespace['id']) {
                
$this->write("\n\n");
                
$this->write('**'.$namespace['id'].':**');
            }

            
$this->write("\n\n");
            
$this->write(implode("\n"array_map(function ($commandName) use ($description) {
                return 
sprintf('* [`%s`](#%s)'$commandNamestr_replace(':'''$description->getCommand($commandName)->getName()));
            }, 
$namespace['commands'])));
        }

        foreach (
$description->getCommands() as $command) {
            
$this->write("\n\n");
            if (
null !== $describeCommand $this->describeCommand($command$options)) {
                
$this->write($describeCommand);
            }
        }
    }

    private function 
getApplicationTitle(Application $application): string
    
{
        if (
'UNKNOWN' !== $application->getName()) {
            if (
'UNKNOWN' !== $application->getVersion()) {
                return 
sprintf('%s %s'$application->getName(), $application->getVersion());
            }

            return 
$application->getName();
        }

        return 
'Console Tool';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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