@optique/man 0.10.0-dev.328 → 0.10.0-dev.329

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.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- const require_generator = require('./generator-DFTQgmHv.cjs');
3
- require('./roff-DzxoXJIL.cjs');
4
- require('./man-K9LPAprq.cjs');
2
+ const require_generator = require('./generator-Bmnn5LVV.cjs');
3
+ require('./roff-BQ0kRTkl.cjs');
4
+ require('./man-DKA-oVEE.cjs');
5
5
  const __optique_core_constructs = require_generator.__toESM(require("@optique/core/constructs"));
6
6
  const __optique_core_primitives = require_generator.__toESM(require("@optique/core/primitives"));
7
7
  const __optique_core_valueparser = require_generator.__toESM(require("@optique/core/valueparser"));
@@ -17,7 +17,7 @@ const node_url = require_generator.__toESM(require("node:url"));
17
17
 
18
18
  //#region deno.json
19
19
  var name = "@optique/man";
20
- var version = "0.10.0-dev.328+4e5f40d5";
20
+ var version = "0.10.0-dev.329+96b4ad62";
21
21
  var license = "MIT";
22
22
  var exports$1 = {
23
23
  ".": "./src/index.ts",
@@ -127,7 +127,7 @@ Write output to a file:
127
127
  Override the program name:
128
128
 
129
129
  ${(0, __optique_core_message.commandLine)("optique-man ./src/cli.ts -s 1 --name myapp")}`,
130
- bugs: __optique_core_message.message`Report bugs to: <https://github.com/dahlia/optique/issues>.`
130
+ bugs: __optique_core_message.message`Report bugs to: ${(0, __optique_core_message.url)("https://github.com/dahlia/optique/issues")}.`
131
131
  }
132
132
  });
133
133
  /**
package/dist/cli.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import "./roff-i3JSYqke.js";
3
- import "./man-BmhJz56F.js";
4
- import { generateManPageAsync } from "./generator-DQks_OLj.js";
2
+ import "./roff-BOuYhZQh.js";
3
+ import "./man-BUYUKcwR.js";
4
+ import { generateManPageAsync } from "./generator-DJuVin4B.js";
5
5
  import { object } from "@optique/core/constructs";
6
6
  import { argument, option } from "@optique/core/primitives";
7
7
  import { choice, string } from "@optique/core/valueparser";
8
8
  import { optional, withDefault } from "@optique/core/modifiers";
9
- import { commandLine, message, metavar, optionName } from "@optique/core/message";
9
+ import { commandLine, message, metavar, optionName, url } from "@optique/core/message";
10
10
  import { defineProgram } from "@optique/core/program";
11
11
  import { printError, runSync } from "@optique/run";
12
12
  import { existsSync } from "node:fs";
@@ -17,7 +17,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
17
17
 
18
18
  //#region deno.json
19
19
  var name = "@optique/man";
20
- var version = "0.10.0-dev.328+4e5f40d5";
20
+ var version = "0.10.0-dev.329+96b4ad62";
21
21
  var license = "MIT";
22
22
  var exports = {
23
23
  ".": "./src/index.ts",
@@ -127,7 +127,7 @@ Write output to a file:
127
127
  Override the program name:
128
128
 
129
129
  ${commandLine("optique-man ./src/cli.ts -s 1 --name myapp")}`,
130
- bugs: message`Report bugs to: <https://github.com/dahlia/optique/issues>.`
130
+ bugs: message`Report bugs to: ${url("https://github.com/dahlia/optique/issues")}.`
131
131
  }
132
132
  });
133
133
  /**
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
 
23
23
  //#endregion
24
- const require_man = require('./man-K9LPAprq.cjs');
24
+ const require_man = require('./man-DKA-oVEE.cjs');
25
25
  const __optique_core_parser = __toESM(require("@optique/core/parser"));
26
26
 
27
27
  //#region src/generator.ts
@@ -1,4 +1,4 @@
1
- import { formatDocPageAsMan } from "./man-BmhJz56F.js";
1
+ import { formatDocPageAsMan } from "./man-BUYUKcwR.js";
2
2
  import { getDocPageAsync, getDocPageSync } from "@optique/core/parser";
3
3
 
4
4
  //#region src/generator.ts
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
- const require_generator = require('./generator-DFTQgmHv.cjs');
2
- const require_roff = require('./roff-DzxoXJIL.cjs');
3
- const require_man = require('./man-K9LPAprq.cjs');
1
+ const require_generator = require('./generator-Bmnn5LVV.cjs');
2
+ const require_roff = require('./roff-BQ0kRTkl.cjs');
3
+ const require_man = require('./man-DKA-oVEE.cjs');
4
4
 
5
5
  exports.escapeHyphens = require_roff.escapeHyphens;
6
6
  exports.escapeRoff = require_roff.escapeRoff;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { escapeHyphens, escapeRoff, formatMessageAsRoff } from "./roff-i3JSYqke.js";
2
- import { formatDateForMan, formatDocPageAsMan, formatUsageTermAsRoff } from "./man-BmhJz56F.js";
3
- import { generateManPage, generateManPageAsync, generateManPageSync } from "./generator-DQks_OLj.js";
1
+ import { escapeHyphens, escapeRoff, formatMessageAsRoff } from "./roff-BOuYhZQh.js";
2
+ import { formatDateForMan, formatDocPageAsMan, formatUsageTermAsRoff } from "./man-BUYUKcwR.js";
3
+ import { generateManPage, generateManPageAsync, generateManPageSync } from "./generator-DJuVin4B.js";
4
4
 
5
5
  export { escapeHyphens, escapeRoff, formatDateForMan, formatDocPageAsMan, formatMessageAsRoff, formatUsageTermAsRoff, generateManPage, generateManPageAsync, generateManPageSync };
@@ -1,4 +1,4 @@
1
- import { escapeHyphens, formatMessageAsRoff } from "./roff-i3JSYqke.js";
1
+ import { escapeHyphens, formatMessageAsRoff } from "./roff-BOuYhZQh.js";
2
2
 
3
3
  //#region src/man.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_roff = require('./roff-DzxoXJIL.cjs');
1
+ const require_roff = require('./roff-BQ0kRTkl.cjs');
2
2
 
3
3
  //#region src/man.ts
4
4
  /**
package/dist/man.cjs CHANGED
@@ -1,5 +1,5 @@
1
- require('./roff-DzxoXJIL.cjs');
2
- const require_man = require('./man-K9LPAprq.cjs');
1
+ require('./roff-BQ0kRTkl.cjs');
2
+ const require_man = require('./man-DKA-oVEE.cjs');
3
3
 
4
4
  exports.formatDateForMan = require_man.formatDateForMan;
5
5
  exports.formatDocPageAsMan = require_man.formatDocPageAsMan;
package/dist/man.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./roff-i3JSYqke.js";
2
- import { formatDateForMan, formatDocPageAsMan, formatUsageTermAsRoff } from "./man-BmhJz56F.js";
1
+ import "./roff-BOuYhZQh.js";
2
+ import { formatDateForMan, formatDocPageAsMan, formatUsageTermAsRoff } from "./man-BUYUKcwR.js";
3
3
 
4
4
  export { formatDateForMan, formatDocPageAsMan, formatUsageTermAsRoff };
@@ -74,6 +74,7 @@ function formatTermAsRoff(term) {
74
74
  return term.values.map((v) => `"${escapeBackslashes(v)}"`).join(" ");
75
75
  case "envVar": return `\\fB${escapeBackslashes(term.envVar)}\\fR`;
76
76
  case "commandLine": return `\\fB${escapeHyphens(escapeBackslashes(term.commandLine))}\\fR`;
77
+ case "url": return `\\fI${escapeHyphens(escapeBackslashes(term.url.href))}\\fR`;
77
78
  default: {
78
79
  const _exhaustive = term;
79
80
  throw new TypeError(`Unknown message term type: ${_exhaustive.type}.`);
@@ -75,6 +75,7 @@ function formatTermAsRoff(term) {
75
75
  return term.values.map((v) => `"${escapeBackslashes(v)}"`).join(" ");
76
76
  case "envVar": return `\\fB${escapeBackslashes(term.envVar)}\\fR`;
77
77
  case "commandLine": return `\\fB${escapeHyphens(escapeBackslashes(term.commandLine))}\\fR`;
78
+ case "url": return `\\fI${escapeHyphens(escapeBackslashes(term.url.href))}\\fR`;
78
79
  default: {
79
80
  const _exhaustive = term;
80
81
  throw new TypeError(`Unknown message term type: ${_exhaustive.type}.`);
package/dist/roff.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_roff = require('./roff-DzxoXJIL.cjs');
1
+ const require_roff = require('./roff-BQ0kRTkl.cjs');
2
2
 
3
3
  exports.escapeHyphens = require_roff.escapeHyphens;
4
4
  exports.escapeRoff = require_roff.escapeRoff;
package/dist/roff.js CHANGED
@@ -1,3 +1,3 @@
1
- import { escapeHyphens, escapeRoff, formatMessageAsRoff } from "./roff-i3JSYqke.js";
1
+ import { escapeHyphens, escapeRoff, formatMessageAsRoff } from "./roff-BOuYhZQh.js";
2
2
 
3
3
  export { escapeHyphens, escapeRoff, formatMessageAsRoff };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/man",
3
- "version": "0.10.0-dev.328+4e5f40d5",
3
+ "version": "0.10.0-dev.329+96b4ad62",
4
4
  "description": "Man page generator for Optique CLI parsers",
5
5
  "keywords": [
6
6
  "CLI",