Create image license analysis script
This commit is contained in:
parent
7aea97c68b
commit
13f8bea37a
2 changed files with 215 additions and 0 deletions
18
scripts/Script.ts
Normal file
18
scripts/Script.ts
Normal 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"))
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue