import { defineCommand } from "politty";
import { executeCommand } from "../../../lib/command-result";
import { runInternalGhActionsSyncCheck } from "./sync-check";

export const syncCheckCommand = defineCommand({
  name: "sync-check",
  description:
    "Detect drift between local .github/workflows + .github/actions and erp-kit templates",
  run: () => {
    return executeCommand(() => runInternalGhActionsSyncCheck(process.cwd()));
  },
});
