Cake\Shell\Task\UnloadTask::main PHP Method

main() public method

Execution method always used for tasks.
public main ( string | null $plugin = null ) : boolean
$plugin string | null The plugin name.
return boolean if action passed.
    public function main($plugin = null)
    {
        $this->bootstrap = ROOT . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'bootstrap.php';
        if (empty($plugin)) {
            $this->err('You must provide a plugin name in CamelCase format.');
            $this->err('To unload an "Example" plugin, run `cake plugin unload Example`.');
            return false;
        }
        return (bool) $this->_modifyBootstrap($plugin);
    }