public function describe(OutputInterface $output, $object, array $options = []): void
    {
        /** @var Application $application */
        $application = $object->getApplication();

        $this->describeTitle($application, $output);

        $describedNamespace = $options['namespace'] ?? null;

        if ($describedNamespace !== null) {
            $output->write(\sprintf(
                "<comment>Available commands for the [%s] namespace</comment>\n\n",
                $describedNamespace
            ));
        }

        $this->describeUsage($output);
        $this->describeCommands($application, $object, $options);
    }
public function describe(OutputInterface $output, $object, array $options = []): void
    {
        /** @var Application $application */
        $application = $object->getApplication();

        $this->describeTitle($application, $output);

        $describedNamespace = $options['namespace'] ?? null;

        if ($describedNamespace !== null) {
            $output->write(\sprintf(
                "<comment>Available commands for the [%s] namespace</comment>\n\n",
                $describedNamespace
            ));
        }

        $this->describeUsage($output);
        $this->describeCommands($application, $object, $options);
    }
public function describe ( OutputInterface $ output , $ object , array $ options = [ ] ) : void { /** @var Application $application */ $ application = $ object -> getApplication ( ) ; $ this -> describeTitle ( $ application , $ output ) ; $ describedNamespace = $ options [ 'namespace' ] ?? null ; if ( $ describedNamespace !== null ) { $ output -> write ( \ sprintf ( "<comment>Available commands for the [%s] namespace</comment>\n\n" , $ describedNamespace ) ) ; } $ this -> describeUsage ( $ output ) ; $ this -> describeCommands ( $ application , $ object , $ options ) ; }
Describes an object if supported.

@param \Symfony\Component\Console\Output\OutputInterface  $output
@param \Viserio\Component\Console\Command\AbstractCommand $object
@param array                                              $options

@return void
Describes an object if supported .