servers/execution/runner/src/runner-factory.service.ts
import { Injectable } from '@nestjs/common';
import Runner from './interfaces/runner.interface.js';
import ExecaRunner from './execa-runner.js';
@Injectable()
export default class RunnerFactory {
static create(command: string): Runner {
return new ExecaRunner(command);
}
}