ThinkDeepTech/thinkdeep

View on GitHub
packages/deep-microservice-collection/src/command/command.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Base class for commands executed by the commander.
 */
class Command {
  /**
   * Execute the command.
   */
  async execute() {
    throw new Error(
      `The function execute() of class Command is abstract and requires concrete implementation.`
    );
  }

  /**
   * Stop the command.
   */
  async stop() {
    throw new Error(
      `The function stop() of class Command is abstract and requires concrete implementation.`
    );
  }
}

export {Command};