servers/execution/runner/src/interfaces/command.interface.ts
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 };