Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 688 Bytes

File metadata and controls

33 lines (24 loc) · 688 Bytes

marko/cli

Global command-line tool --- run marko from any project directory to execute commands.

Installation

composer global require marko/cli

Quick Example

use Marko\Core\Attributes\Command;
use Marko\Core\Command\CommandInterface;
use Marko\Core\Command\Input;
use Marko\Core\Command\Output;

#[Command(name: 'greet', description: 'Say hello')]
class GreetCommand implements CommandInterface
{
    public function execute(Input $input, Output $output): int
    {
        $output->writeLine('Hello, World!');

        return 0;
    }
}

Documentation

Full usage, API reference, and examples: marko/cli