initial commit
This commit is contained in:
commit
6761bad26e
18 changed files with 282 additions and 0 deletions
15
lib/setup.ts
Normal file
15
lib/setup.ts
Normal 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>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue