public function api(CommandInterface $command, $fromGenerate = false)
{
if (!$fromGenerate) {
$this->generate($command);
}
$documentator = new Documentation($this->files, $this->config, $this->logger, $command);
$this->logger->output('Generating API into ' . $documentator->getOutputDirectory());
$documentator->build();
}