<?php

/*
 * This file is part of Rocketeer
 *
 * (c) Maxime Fabre <ehtnam6@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 */

namespace Rocketeer\Console\Commands;

use Symfony\Component\Console\Input\InputArgument;

/**
 * An abstract from commands related to plugins.
 */
class AbstractPluginCommand extends AbstractCommand
{
    /**
     * The plugin task to fire.
     *
     * @var string
     */
    protected $pluginTask;

    /**
     * Whether the command's task should be built
     * into a pipeline or run straight.
     *
     * @var bool
     */
    protected $straight = true;

    /**
     * {@inheritdoc}
     */
    public function fire()
    {
        return $this->fireTasksQueue($this->pluginTask);
    }

    /**
     * Get the console command arguments.
     *
     * @return string[][]
     */
    protected function getArguments()
    {
        return [
            ['package', InputArgument::OPTIONAL, 'The package to publish the configuration for'],
        ];
    }
}

<?php

/*
 * This file is part of Rocketeer
 *
 * (c) Maxime Fabre <ehtnam6@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 */

namespace Rocketeer\Console\Commands;

use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;

/**
 * An abstract from commands related to plugins.
 */
class AbstractPluginCommand extends AbstractCommand
{
    /**
     * The plugin task to fire.
     *
     * @var string
     */
    protected $pluginTask;

    /**
     * Whether the command's task should be built
     * into a pipeline or run straight.
     *
     * @var bool
     */
    protected $straight = true;

    /**
     * {@inheritdoc}
     */
    public function fire()
    {
        $this->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);

        return $this->fireTasksQueue($this->pluginTask);
    }

    /**
     * Get the console command arguments.
     *
     * @return string[][]
     */
    protected function getArguments()
    {
        return [
            ['package', InputArgument::OPTIONAL, 'The package to publish the configuration for'],
        ];
    }
}

Make plugins command always be verbose
Make plugins command always be verbose
