@optique/man 1.0.0-dev.737 → 1.0.0-dev.745
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 +21 -5
- package/dist/cli.js +21 -5
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -17,7 +17,7 @@ const node_url = require_man.__toESM(require("node:url"));
|
|
|
17
17
|
|
|
18
18
|
//#region deno.json
|
|
19
19
|
var name = "@optique/man";
|
|
20
|
-
var version = "1.0.0-dev.
|
|
20
|
+
var version = "1.0.0-dev.745+a12a4fbd";
|
|
21
21
|
var license = "MIT";
|
|
22
22
|
var exports$1 = {
|
|
23
23
|
".": "./src/index.ts",
|
|
@@ -89,15 +89,31 @@ a ${(0, __optique_core_message.metavar)("PROGRAM")} (from ${(0, __optique_core_m
|
|
|
89
89
|
a ${(0, __optique_core_message.metavar)("PARSER")}. If not specified, the default export is used.` }), "default"),
|
|
90
90
|
output: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("-o", "--output", (0, __optique_core_valueparser.string)({ metavar: "PATH" }), { description: __optique_core_message.message`Output file path. If not specified, the man page
|
|
91
91
|
is written to stdout.` })),
|
|
92
|
-
name: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--name", (0, __optique_core_valueparser.string)({
|
|
92
|
+
name: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--name", (0, __optique_core_valueparser.string)({
|
|
93
|
+
metavar: "NAME",
|
|
94
|
+
pattern: /.+/,
|
|
95
|
+
errors: { patternMismatch: __optique_core_message.message`Program name must not be empty.` }
|
|
96
|
+
}), { description: __optique_core_message.message`Program name to use in the man page header.
|
|
93
97
|
If not specified, inferred from the ${(0, __optique_core_message.metavar)("PROGRAM")} metadata
|
|
94
98
|
or the input file name.` })),
|
|
95
|
-
date: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--date", (0, __optique_core_valueparser.string)({
|
|
99
|
+
date: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--date", (0, __optique_core_valueparser.string)({
|
|
100
|
+
metavar: "DATE",
|
|
101
|
+
pattern: /.+/,
|
|
102
|
+
errors: { patternMismatch: __optique_core_message.message`Date must not be empty.` }
|
|
103
|
+
}), { description: __optique_core_message.message`Date to display in the man page footer.
|
|
96
104
|
Defaults to the current date.` })),
|
|
97
|
-
versionString: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--version-string", (0, __optique_core_valueparser.string)({
|
|
105
|
+
versionString: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--version-string", (0, __optique_core_valueparser.string)({
|
|
106
|
+
metavar: "VERSION",
|
|
107
|
+
pattern: /.+/,
|
|
108
|
+
errors: { patternMismatch: __optique_core_message.message`Version string must not be empty.` }
|
|
109
|
+
}), { description: __optique_core_message.message`Version string for the man page footer
|
|
98
110
|
(e.g., ${"MyApp 1.0.0"}). Overrides the version from
|
|
99
111
|
${(0, __optique_core_message.metavar)("PROGRAM")} metadata if provided.` })),
|
|
100
|
-
manual: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--manual", (0, __optique_core_valueparser.string)({
|
|
112
|
+
manual: (0, __optique_core_modifiers.optional)((0, __optique_core_primitives.option)("--manual", (0, __optique_core_valueparser.string)({
|
|
113
|
+
metavar: "TITLE",
|
|
114
|
+
pattern: /.+/,
|
|
115
|
+
errors: { patternMismatch: __optique_core_message.message`Manual name must not be empty.` }
|
|
116
|
+
}), { description: __optique_core_message.message`Manual name for the man page header
|
|
101
117
|
(e.g., ${"User Commands"}).` }))
|
|
102
118
|
}),
|
|
103
119
|
metadata: {
|
package/dist/cli.js
CHANGED
|
@@ -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 = "1.0.0-dev.
|
|
20
|
+
var version = "1.0.0-dev.745+a12a4fbd";
|
|
21
21
|
var license = "MIT";
|
|
22
22
|
var exports = {
|
|
23
23
|
".": "./src/index.ts",
|
|
@@ -89,15 +89,31 @@ a ${metavar("PROGRAM")} (from ${commandLine("defineProgram()")}) or
|
|
|
89
89
|
a ${metavar("PARSER")}. If not specified, the default export is used.` }), "default"),
|
|
90
90
|
output: optional(option("-o", "--output", string({ metavar: "PATH" }), { description: message`Output file path. If not specified, the man page
|
|
91
91
|
is written to stdout.` })),
|
|
92
|
-
name: optional(option("--name", string({
|
|
92
|
+
name: optional(option("--name", string({
|
|
93
|
+
metavar: "NAME",
|
|
94
|
+
pattern: /.+/,
|
|
95
|
+
errors: { patternMismatch: message`Program name must not be empty.` }
|
|
96
|
+
}), { description: message`Program name to use in the man page header.
|
|
93
97
|
If not specified, inferred from the ${metavar("PROGRAM")} metadata
|
|
94
98
|
or the input file name.` })),
|
|
95
|
-
date: optional(option("--date", string({
|
|
99
|
+
date: optional(option("--date", string({
|
|
100
|
+
metavar: "DATE",
|
|
101
|
+
pattern: /.+/,
|
|
102
|
+
errors: { patternMismatch: message`Date must not be empty.` }
|
|
103
|
+
}), { description: message`Date to display in the man page footer.
|
|
96
104
|
Defaults to the current date.` })),
|
|
97
|
-
versionString: optional(option("--version-string", string({
|
|
105
|
+
versionString: optional(option("--version-string", string({
|
|
106
|
+
metavar: "VERSION",
|
|
107
|
+
pattern: /.+/,
|
|
108
|
+
errors: { patternMismatch: message`Version string must not be empty.` }
|
|
109
|
+
}), { description: message`Version string for the man page footer
|
|
98
110
|
(e.g., ${"MyApp 1.0.0"}). Overrides the version from
|
|
99
111
|
${metavar("PROGRAM")} metadata if provided.` })),
|
|
100
|
-
manual: optional(option("--manual", string({
|
|
112
|
+
manual: optional(option("--manual", string({
|
|
113
|
+
metavar: "TITLE",
|
|
114
|
+
pattern: /.+/,
|
|
115
|
+
errors: { patternMismatch: message`Manual name must not be empty.` }
|
|
116
|
+
}), { description: message`Manual name for the man page header
|
|
101
117
|
(e.g., ${"User Commands"}).` }))
|
|
102
118
|
}),
|
|
103
119
|
metadata: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/man",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.745+a12a4fbd",
|
|
4
4
|
"description": "Man page generator for Optique CLI parsers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"optique-man": "./dist/cli.js"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@optique/
|
|
88
|
-
"@optique/
|
|
87
|
+
"@optique/run": "1.0.0-dev.745+a12a4fbd",
|
|
88
|
+
"@optique/core": "1.0.0-dev.745+a12a4fbd"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@types/node": "^20.19.9",
|