@mutmutco/cli 4.6.22 → 4.6.24
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/main.cjs +1818 -424
- package/dist/runbook-sweep.cjs +4 -2
- package/package.json +1 -1
package/dist/runbook-sweep.cjs
CHANGED
|
@@ -8155,7 +8155,9 @@ function checkRunbookClaims(root, docs, deps) {
|
|
|
8155
8155
|
if (token === "--") break;
|
|
8156
8156
|
const flag = token.split("=")[0];
|
|
8157
8157
|
if (/^--[\w-]+$/.test(flag) && flag !== "--help" && !placeholder(flag) && !deps.commandOptions?.get(resolved)?.has(flag)) {
|
|
8158
|
-
|
|
8158
|
+
const known = deps.commandOptions?.get(resolved);
|
|
8159
|
+
const knownFlags = known?.size ? ` (known flags: ${[...known].sort().join(" ")})` : "";
|
|
8160
|
+
report("unknown-flag", `mmi-cli ${resolved}: ${flag}${knownFlags} (source: ${deps.commandSource ?? "unspecified"})`);
|
|
8159
8161
|
}
|
|
8160
8162
|
}
|
|
8161
8163
|
} else if (cmd === "npm") {
|
|
@@ -8391,7 +8393,7 @@ function runDocRefs(root, deps = {}) {
|
|
|
8391
8393
|
findings.push(...checkCommands(docs, commandPaths).findings);
|
|
8392
8394
|
}
|
|
8393
8395
|
const runbooks = Object.fromEntries(Object.entries(docs).filter(([doc, body]) => isRunbook(doc, body)));
|
|
8394
|
-
findings.push(...checkRunbookClaims(root, runbooks, { readFile: readFile2, exists, isIgnored, trackedFirstSegments, commandPaths, commandOptions: deps.commandOptions }));
|
|
8396
|
+
findings.push(...checkRunbookClaims(root, runbooks, { readFile: readFile2, exists, isIgnored, trackedFirstSegments, commandPaths, commandOptions: deps.commandOptions, commandSource: deps.commandSource }));
|
|
8395
8397
|
const warnings = [...refResult.warnings];
|
|
8396
8398
|
if (deps.runbooksOnly && !Object.keys(runbooks).length) {
|
|
8397
8399
|
warnings.push({ kind: "runbook-missing", doc: "docs/Guides/operator.md", line: 0, detail: "no operator runbook or <!-- runbook --> document exists" });
|
package/package.json
CHANGED