diff --git a/update.ts b/update.ts new file mode 100644 index 00000000..36113fc8 --- /dev/null +++ b/update.ts @@ -0,0 +1,14 @@ +import { readFile } from "fs-extra"; +import { safeLoad } from "js-yaml"; +import { join } from "path"; + +export const update = async () => { + const config = safeLoad( + await readFile(join(".", ".statusrc.yml"), "utf8") + ) as { sites: string[] }; + for await (const url of config.sites) { + console.log("Checking", url); + } +}; + +update();