Files
nextcloud-pantry/gen/command/{{pascalCase name}}.php
2026-04-05 20:48:24 +03:00

40 lines
826 B
PHP

<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: Your Name <your@email.com>
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace OCA\NextcloudAppTemplate\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class {{pascalCase name}} extends Command {
/**
* {{pascalCase name}} constructor.
*/
public function __construct() {
parent::__construct();
}
/**
*
*/
protected function configure(): void {
parent::configure();
$this->setName('mynextcloudapp:{{kebabCase name}}');
}
/**
* @param InputInterface $input
* @param OutputInterface $output
*
* @throws Exception
*/
protected function execute(InputInterface $input, OutputInterface $output): int {
return 0;
}
}