public function apiGenerate()
    {
        $paths = $this->getPaths();
        $this->stopOnFail(true);
        $this->info('Generating API documentation');
        $this->taskExec(sprintf('%s/sami', $paths['bin']))
            ->arg('update')
            ->arg(sprintf('%s/sami.php', $paths['build']))
            ->printOutput(true)
            ->run();
        $this->info('API documentation generated');
    }