Class Kitab\Bin\Bin

class Bin
{
    pub static fn main();
    pro static fn setErrorHandler();
    pro static fn getRouter(): Cli;
    pro static fn getDispatcher(): ClassMethod;
    pro static fn exitWith(string $message, int $code);
}

Run the sub commands of the kitab command.

A sub command must be a class declared in the Kitab\Bin namespace. Its run public method —the entry method— will be called to run the sub command.

Any exception thrown will be outputed in php://stderr with a brilliant colour.

Methods

pub static fn main()

Call the sub command.

pro static fn setErrorHandler()

Use the Hoa default error and exception handlers.

pro static fn getRouter(): Cli
pro static fn getDispatcher(): ClassMethod
pro static fn exitWith(string $message, int $code)