@hawkeyexl/manni 2.10.0 → 2.10.2

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.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  readStdin,
8
8
  reportConfig,
9
9
  splitList
10
- } from "./chunk-XXNHE2IW.js";
10
+ } from "./chunk-H5ZFSHG2.js";
11
11
  import {
12
12
  CiteError,
13
13
  KeyError,
@@ -40,7 +40,7 @@ import {
40
40
  shortPin,
41
41
  shortSrc,
42
42
  spellSource
43
- } from "./chunk-FHRU3GN6.js";
43
+ } from "./chunk-4HKOQIJL.js";
44
44
  import {
45
45
  COMMON_FORMAT_LIST,
46
46
  FAMILY_CONFIG_NAMES,
@@ -80,7 +80,7 @@ import {
80
80
  splitPageArgument,
81
81
  terminalConfirm,
82
82
  valeConfigPath
83
- } from "./chunk-ROAPSWWB.js";
83
+ } from "./chunk-KJLPOY2I.js";
84
84
 
85
85
  // src/cli.ts
86
86
  import { Command as Command5 } from "commander";
@@ -1410,7 +1410,10 @@ function buildProgram3() {
1410
1410
  "configured collection to run over; repeatable",
1411
1411
  collect,
1412
1412
  []
1413
- ).option("--ext <list>", "comma-separated extensions for directory walks").option("--exclude <glob>", "glob to exclude; repeatable", collect, []).option("--as <format>", "force an input format for every input").option("-c, --config <path>", "path to a manni config file").option("--no-config", "ignore any discovered config file").option("--allow-empty", "treat zero matched files as success").option("--no-gitignore", "update files .gitignore covers").option("--no-check-sources", "refused: update needs the sources").option("--root <dir>", "directory src: paths resolve from (as check)").option("--accept", "re-mint changed and never-true entries at HEAD; prints old and new pins").option("--only <id>", "limit to entries with this id; repeatable", collect, []).option("--dry-run", "print the diffs; write nothing").option(
1413
+ ).option("--ext <list>", "comma-separated extensions for directory walks").option("--exclude <glob>", "glob to exclude; repeatable", collect, []).option("--as <format>", "force an input format for every input").option("-c, --config <path>", "path to a manni config file").option("--no-config", "ignore any discovered config file").option("--allow-empty", "treat zero matched files as success").option("--no-gitignore", "update files .gitignore covers").option("--no-check-sources", "refused: update needs the sources").option("--root <dir>", "directory src: paths resolve from (as check)").option("--accept", "re-mint changed and never-true entries at HEAD; prints old and new pins").option(
1414
+ "--recommit",
1415
+ "re-record commit-sha where the recorded commit does not contain the pinned lines"
1416
+ ).option("--only <id>", "limit to entries with this id; repeatable", collect, []).option("--dry-run", "print the diffs; write nothing").option(
1414
1417
  "-f, --format <format>",
1415
1418
  `output: ${UPDATE_FORMATS.join(" | ")}`,
1416
1419
  "pretty"
@@ -1421,7 +1424,8 @@ function buildProgram3() {
1421
1424
  "Examples:",
1422
1425
  " manni cite update docs/ # rewrite moved entries",
1423
1426
  " manni cite update --accept --only fetch-timeout docs/limits.md",
1424
- " manni cite update --dry-run docs/ # see the diffs first"
1427
+ " manni cite update --dry-run docs/ # see the diffs first",
1428
+ " manni cite update --recommit docs/ # repair unsupported commit-sha"
1425
1429
  ].join("\n")
1426
1430
  ).action(async (paths, options, command) => {
1427
1431
  try {
@@ -1456,6 +1460,7 @@ function buildProgram3() {
1456
1460
  onNotice: notice,
1457
1461
  root: options.root,
1458
1462
  accept: options.accept ? true : void 0,
1463
+ recommit: options.recommit ? true : void 0,
1459
1464
  only: options.only.length > 0 ? options.only : void 0,
1460
1465
  dryRun
1461
1466
  });
@@ -4793,8 +4798,8 @@ var spawnVale = (args, opts) => new Promise((settle, reject) => {
4793
4798
  settle({ code: error.code, stdout, stderr });
4794
4799
  return;
4795
4800
  }
4796
- if (error.code === void 0 && error.signal) {
4797
- settle({ code: null, stdout, stderr });
4801
+ if (error.code == null && typeof error.signal === "string") {
4802
+ settle({ code: null, signal: error.signal, stdout, stderr });
4798
4803
  return;
4799
4804
  }
4800
4805
  const failure = error;
@@ -4823,7 +4828,9 @@ function failureText(result) {
4823
4828
  if (isMapping2(parsed) && typeof parsed["Text"] === "string") return parsed["Text"].trim();
4824
4829
  } catch {
4825
4830
  }
4826
- return stderr === "" ? `exit code ${String(result.code)}` : stderr;
4831
+ if (stderr !== "") return stderr;
4832
+ if (result.signal != null) return `killed by ${result.signal}`;
4833
+ return `exit code ${String(result.code)}`;
4827
4834
  }
4828
4835
  function parseJson(stdout, what) {
4829
4836
  try {