protected function executeWithStack(Stack $stack, InputInterface $input, OutputInterface $output)
{
$this->dependencyTracker->reset();
foreach ($this->blueprintFactory->getAllBlueprints() as $blueprint) {
$blueprint->getPreprocessedTemplate();
}
$dependants = $this->dependencyTracker->findDependantsForStack($stack->getName());
$rows = [];
foreach ($dependants as $dependant) {
$rows[] = [$dependant['targetType'] . ':' . $dependant['targetResource'], $dependant['type'] . ':' . $dependant['blueprint'] . ':' . $dependant['key']];
}
$output->writeln("Following blueprints depend on stack '{$stack->getName()}':");
$table = new Table($output);
$table->setHeaders(['Origin (Stack: ' . $stack->getName() . ')', 'Blueprint'])->setRows($rows)->render();
}