@theholocron/cli 4.5.0 → 4.6.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 +5 -2
- package/dist/cli.mjs.map +1 -1
- package/package.json +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSy
|
|
|
4
4
|
import path, { basename, dirname, join, relative, resolve } from "node:path";
|
|
5
5
|
import { checkbox, input, select } from "@inquirer/prompts";
|
|
6
6
|
import { KNOWN_WORKFLOWS, WORKFLOW_CHECK_CONTEXTS, WORKFLOW_TEMPLATES, createAstromech, deriveDeployPaths, extractPreviewConfig, generateCombinedDeployContent, generateThinCallerContent, lintThinCallerWith, normalizeWorkflowWith } from "@theholocron/astromech";
|
|
7
|
+
import { loadTasksConfig } from "@theholocron/astromech/config";
|
|
7
8
|
import yargs from "yargs";
|
|
8
9
|
import { hideBin } from "yargs/helpers";
|
|
9
10
|
import { AuthError, ProviderApiError, ProviderApiError as ProviderApiError$1, createRestClient } from "@theholocron/http-client";
|
|
@@ -7064,11 +7065,13 @@ try {
|
|
|
7064
7065
|
type: "boolean",
|
|
7065
7066
|
default: false,
|
|
7066
7067
|
describe: "Fail (exit 1) if this repo has no such task, instead of skipping."
|
|
7067
|
-
}), (argv) => {
|
|
7068
|
+
}), async (argv) => {
|
|
7068
7069
|
const { logger } = buildCliLogger(argv, { command: "run" });
|
|
7070
|
+
const config = await loadTasksConfig(argv.cwd).catch(() => void 0);
|
|
7069
7071
|
const report = createAstromech({
|
|
7070
7072
|
cwd: argv.cwd,
|
|
7071
|
-
logger
|
|
7073
|
+
logger,
|
|
7074
|
+
config
|
|
7072
7075
|
}).run(argv.task, {
|
|
7073
7076
|
passthrough: argv.passthrough ?? [],
|
|
7074
7077
|
dryRun: argv.dryRun,
|