oden/third-party/vendor/deno_ast/scripts/reset.ts
2024-03-08 11:03:01 -08:00

9 lines
327 B
TypeScript

// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { Repos } from "./repos.ts";
const repos = await Repos.load({ skipLoadingCrates: true });
if (confirm("Are you sure you want to git reset --hard all the repos?")) {
await Promise.all(repos.nonDenoAstRepos().map((c) => c.gitResetHard()));
}