@theholocron/cli 4.7.0 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -7066,6 +7066,9 @@ try {
7066
7066
  type: "boolean",
7067
7067
  default: false,
7068
7068
  describe: "Fail (exit 1) if this repo has no such task, instead of skipping."
7069
+ }).option("filter", {
7070
+ type: "string",
7071
+ describe: "turbo --filter=<pkg> passthrough (monorepo)."
7069
7072
  }), async (argv) => {
7070
7073
  const { logger } = buildCliLogger(argv, { command: "run" });
7071
7074
  const config = await loadTasksConfig(argv.cwd).catch(() => void 0);
@@ -7076,9 +7079,29 @@ try {
7076
7079
  }).run(argv.task, {
7077
7080
  passthrough: argv.passthrough ?? [],
7078
7081
  dryRun: argv.dryRun,
7079
- required: argv.required
7082
+ required: argv.required,
7083
+ ...argv.filter ? { filter: argv.filter } : {}
7080
7084
  });
7081
7085
  if (report.status === "fail" || report.status === "unknown") process.exitCode = 1;
7086
+ }).command("ci", "Run the merge-gating checks locally, in CI order — 'will CI pass?'", (y) => y.option("all", {
7087
+ type: "boolean",
7088
+ default: false,
7089
+ describe: "Run every `ci: true` task, not just the required ones."
7090
+ }).option("filter", {
7091
+ type: "string",
7092
+ describe: "turbo --filter=<pkg> passthrough (monorepo)."
7093
+ }), async (argv) => {
7094
+ const { logger } = buildCliLogger(argv, { command: "ci" });
7095
+ const config = await loadTasksConfig(argv.cwd).catch(() => void 0);
7096
+ if (createAstromech({
7097
+ cwd: argv.cwd,
7098
+ logger,
7099
+ config
7100
+ }).ci({
7101
+ dryRun: argv.dryRun,
7102
+ scope: argv.all ? "all" : "required",
7103
+ ...argv.filter ? { filter: argv.filter } : {}
7104
+ }).status === "fail") process.exitCode = 1;
7082
7105
  }).command("sync-github", "Sync workflow templates and composite actions to theholocron/.github", (y) => y.option("repo", {
7083
7106
  type: "string",
7084
7107
  default: "theholocron/.github",