1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Cli;
4:
5: use Salient\Contract\Core\JsonSchemaInterface;
6:
7: /**
8: * A runnable CLI command
9: *
10: * @api
11: */
12: interface CliCommandInterface extends CliCommandNodeInterface, JsonSchemaInterface
13: {
14: /**
15: * Parse the given arguments and run the command
16: */
17: public function __invoke(string ...$args): int;
18: }
19: