wip first crack at scenario and runner
This commit is contained in:
parent
fb3482530d
commit
98bf5aaf87
1 changed files with 520 additions and 20 deletions
15
src/scenarios/index.ts
Normal file
15
src/scenarios/index.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Scenario } from '../types.js';
|
||||
|
||||
export const scenarios = new Map<string, Scenario>();
|
||||
|
||||
export function registerScenario(name: string, scenario: Scenario): void {
|
||||
scenarios.set(name, scenario);
|
||||
}
|
||||
|
||||
export function getScenario(name: string): Scenario | undefined {
|
||||
return scenarios.get(name);
|
||||
}
|
||||
|
||||
export function listScenarios(): string[] {
|
||||
return Array.from(scenarios.keys());
|
||||
}
|
||||
Loading…
Reference in a new issue