Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html_old/abc/vendor/drush/drush/src/Commands/core/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html_old/abc/vendor/drush/drush/src/Commands/core/DrupliconCommands.php

<?php
namespace Drush\Commands\core;

use Consolidation\AnnotatedCommand\CommandData;
use Drush\Commands\DrushCommands;

class DrupliconCommands extends DrushCommands
{
    protected $printed = false;

    /**
     * @hook option *
     * @option druplicon Shows the druplicon as glorious ASCII art.
     */
    public function optionset($options = ['druplicon' => false])
    {
    }

    /**
     * Print druplicon as post-command output.
     *
     * @hook post-command *
     */
    public function druplicon($result, CommandData $commandData)
    {
        // If one command does a Drush::drush() to another command,
        // then this hook will be called multiple times. Only print
        // once.
        if ($this->printed) {
            return;
        }
        $this->printed = true;
        $annotationData = $commandData->annotationData();
        $commandName = $annotationData['command'];
        if ($commandData->input()->hasOption('druplicon') && $commandData->input()->getOption('druplicon')) {
            $this->logger()->debug(dt('Displaying Druplicon for "!command" command.', ['!command' => $commandName]));
            $misc_dir = DRUSH_BASE_PATH . '/misc';
            if ($commandData->input()->getOption('no-ansi')) {
                $content = file_get_contents($misc_dir . '/druplicon-no_color.txt');
            } else {
                $content = file_get_contents($misc_dir . '/druplicon-color.txt');
            }
            $commandData->output()->writeln($content);
        }
    }
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net