Fixed command interfaces

This commit is contained in:
2026-06-19 13:42:25 +00:00
parent 5f9f6ca2ff
commit 0027766a77
14 changed files with 39 additions and 14 deletions
+3 -1
View File
@@ -10,6 +10,7 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use CloudObjects\PhpMAE\ClassValidator;
class ClassValidateCommand extends AbstractObjectCommand {
@@ -22,7 +23,7 @@ class ClassValidateCommand extends AbstractObjectCommand {
->addOption('watch', null, InputOption::VALUE_NONE, 'Keep watching for changes of the file and revalidate automatically.');
}
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$this->parse($input->getArgument('coid'));
$this->assertRDF();
if (!in_array('coid://phpmae.dev/Class', $this->rdfTypes)
@@ -52,6 +53,7 @@ class ClassValidateCommand extends AbstractObjectCommand {
}
});
}
return Command::SUCCESS;
}
}