initial commit

This commit is contained in:
JOLIMAITRE Matthieu 2022-05-27 03:47:38 +03:00
commit 6761bad26e
18 changed files with 282 additions and 0 deletions

15
lib/setup.ts Normal file
View file

@ -0,0 +1,15 @@
import { Context } from "./context.ts"
export type SetupResult = "Ok" | "Error";
export abstract class Setup {
name: string;
dependencies: string[];
constructor(options: { name: string, dependencies?: string[] }) {
this.dependencies = options.dependencies ?? [];
this.name = options.name;
}
abstract install(context: Context): Promise<SetupResult>;
}