Documentation
    Preparing search index...

    Interface ExecutorContract<Command>

    Command executor is used to create a new instance of the command and run it.

    interface ExecutorContract<Command extends AbstractBaseCommand> {
        create(
            command: Command,
            parsedOutput: ParsedOutput,
            kernel: Kernel<Command>,
        ): InstanceType<Command> | Promise<InstanceType<Command>>;
        run<Instance extends { hydrate(): void; exitCode?: number }>(
            command: Instance,
            kernel: Kernel<Command>,
        ): Promise<Instance>;
    }

    Type Parameters

    Index

    Methods

    Methods