You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
439 B
PHP
21 lines
439 B
PHP
<?php
|
|
|
|
namespace jrosset\CliProgram;
|
|
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
use Throwable;
|
|
|
|
/**
|
|
* Interface for all commands
|
|
*/
|
|
interface ICommand {
|
|
/**
|
|
* Runs the command.
|
|
*
|
|
* @return int The command exit code
|
|
*
|
|
* @throws Throwable If an error occurs
|
|
*/
|
|
public function run (InputInterface $input, OutputInterface $output): int;
|
|
} |