averias/redis-time-series

View on GitHub
src/command/commandInvoker.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { CommandInterface } from "./interface/command";

export class CommandInvoker {
    protected command: CommandInterface;

    public setCommand(command: CommandInterface): CommandInvoker {
        this.command = command;
        return this;
    }

    public async run(): Promise<any> {
        return this.command.execute();
    }
}