INTO-CPS-Association/DTaaS

View on GitHub
servers/execution/runner/src/interfaces/command.interface.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ExecuteCommandDto } from 'src/dto/command.dto.js';
import Runner from './runner.interface.js';

type Command = {
  name: string;
  status: string;
  task: Runner | undefined;
};

type CommandStatus = {
  name: string;
  status: string;
  logs: {
    stdout: string | undefined;
    stderr: string | undefined;
  };
};

interface Manager {
  newCommand(name: string): Promise<[boolean, Map<string, string>]>;
  checkHistory(): Array<ExecuteCommandDto>;
  checkStatus(): CommandStatus;
}

export { Command, CommandStatus, Manager };