Create image license analysis script

This commit is contained in:
Pieter Vander Vennet 2023-01-09 20:30:13 +01:00
parent 7aea97c68b
commit 13f8bea37a
2 changed files with 215 additions and 0 deletions

18
scripts/Script.ts Normal file
View file

@ -0,0 +1,18 @@
import ScriptUtils from "./ScriptUtils"
export default abstract class Script {
private readonly _docs: string
constructor(docs: string) {
this._docs = docs
}
abstract main(args: string[]): Promise<void>
public run(): void {
ScriptUtils.fixUtils()
const args = [...process.argv]
args.splice(0, 2)
this.main(args).then((_) => console.log("All done"))
}
}