CoreFiles by mySites.guru
BashCompletionOutput.php30 lines, 872 bytes, from Joomla_4.2.9-Stable-Full_Package.zip
Raw History Compare with 4.2.8
md5
ea398bb002dff5aa577ace2a65b4ff96
sha1
da8badcb3974ea5e99fcc1344ddb31e0d033f62b
sha256
b178f327915493141d374d6895406c6c56d5736052bb0010b0fb7e5779f1a4f7
<?php

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

namespace Symfony\Component\Console\Completion\Output;

use Symfony\Component\Console\Completion\CompletionSuggestions;
use Symfony\Component\Console\Output\OutputInterface;

/**
 * @author Wouter de Jong <[email protected]>
 */
class BashCompletionOutput implements CompletionOutputInterface
{
    public function write(CompletionSuggestions $suggestions, OutputInterface $output): void
    {
        $values = $suggestions->getValueSuggestions();
        foreach ($suggestions->getOptionSuggestions() as $option) {
            $values[] = '--'.$option->getName();
        }
        $output->writeln(implode("\n", $values));
    }
}

The same content is in 41 releases, Joomla 4.1.0-beta3 to 4.2.9. See them all, or every version of this file.