This commit is contained in:
sokol
2026-02-18 11:38:25 +03:00
commit 83a5bb87c1
40 changed files with 5803 additions and 0 deletions

26
src/builders/index.ts Normal file
View File

@@ -0,0 +1,26 @@
import { Env } from "../models/Env";
import { EnvBuilder } from "./EnvBuilder";
export interface IBuilder<T> {
get src(): T;
set src(v: T);
build(): string;
}
export class Builder {
public static getEnv(env: Env): IBuilder<Env> {
let b = new EnvBuilder();
b.src = env;
return b;
};
public static getEnvs(envs: Env[]): string {
return envs.map(x => Builder.getEnv(x).build()).join("\r\n");
}
}