trm-client 10.0.0 → 10.0.1
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/changelog.txt +7 -0
- package/dist/command/implementations/Alias.js +1 -0
- package/dist/command/implementations/Cg3y.js +2 -1
- package/dist/command/implementations/Cg3z.js +2 -1
- package/dist/command/implementations/Content.js +2 -1
- package/dist/command/implementations/DistTag.js +5 -3
- package/dist/command/implementations/FindDependencies.js +3 -2
- package/dist/command/implementations/Install.js +14 -14
- package/dist/command/implementations/Lock.js +1 -1
- package/dist/command/implementations/Publish.js +10 -10
- package/dist/command/implementations/Registry.js +2 -0
- package/dist/command/implementations/Unpublish.js +1 -0
- package/dist/command/metadata/CommandMetadata.d.ts +3 -1
- package/dist/command/metadata/helpers.d.ts +2 -1
- package/dist/command/metadata/helpers.js +3 -0
- package/package.json +1 -1
package/changelog.txt
CHANGED
|
@@ -8,6 +8,13 @@ Legend
|
|
|
8
8
|
+ : added
|
|
9
9
|
- : removed
|
|
10
10
|
|
|
11
|
+
2026-07-06 v10.0.1
|
|
12
|
+
-------------------
|
|
13
|
+
+ picker type in metadata
|
|
14
|
+
+ custom pickers in metadata
|
|
15
|
+
+ negated in metadata
|
|
16
|
+
! commands gui relevance, icons and grouping
|
|
17
|
+
|
|
11
18
|
2026-07-06 v10.0.0
|
|
12
19
|
-------------------
|
|
13
20
|
+ expose commands metadata
|
|
@@ -46,11 +46,12 @@ Cg3y.metadata = {
|
|
|
46
46
|
command: "cg3y",
|
|
47
47
|
title: "Download transport",
|
|
48
48
|
group: "utility",
|
|
49
|
+
groupPriority: 8,
|
|
49
50
|
description: "Download a released transport from the connected system.",
|
|
50
51
|
icon: "Download",
|
|
51
52
|
arguments: [
|
|
52
53
|
(0, helpers_1.argument)(0, { name: "transport", label: "Transport", description: "Transport request number." }),
|
|
53
|
-
(0, helpers_1.argument)(1, { name: "filename", label: "Output file", description: "Output file name or path.", required: false, control: "file-picker" })
|
|
54
|
+
(0, helpers_1.argument)(1, { name: "filename", label: "Output file", description: "Output file name or path.", required: false, control: "file-picker", pickerType: "output" })
|
|
54
55
|
],
|
|
55
56
|
options: [],
|
|
56
57
|
requirements: {
|
|
@@ -57,10 +57,11 @@ Cg3z.metadata = {
|
|
|
57
57
|
command: "cg3z",
|
|
58
58
|
title: "Upload transport",
|
|
59
59
|
group: "utility",
|
|
60
|
+
groupPriority: 7,
|
|
60
61
|
description: "Upload a released transport archive to the connected system.",
|
|
61
62
|
icon: "Upload",
|
|
62
63
|
arguments: [
|
|
63
|
-
(0, helpers_1.argument)(0, { name: "filename", label: "Transport archive", description: "Transport archive file name or path.", control: "file-picker" })
|
|
64
|
+
(0, helpers_1.argument)(0, { name: "filename", label: "Transport archive", description: "Transport archive file name or path.", control: "file-picker", pickerType: "input" })
|
|
64
65
|
],
|
|
65
66
|
options: [],
|
|
66
67
|
requirements: {
|
|
@@ -191,8 +191,9 @@ Content.metadata = {
|
|
|
191
191
|
aliases: ["contents"],
|
|
192
192
|
title: "Package content",
|
|
193
193
|
group: "registry",
|
|
194
|
+
groupPriority: 7,
|
|
194
195
|
description: "View the contents of a package release in registry.",
|
|
195
|
-
icon: "
|
|
196
|
+
icon: "FolderTree",
|
|
196
197
|
arguments: [
|
|
197
198
|
(0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package name." }),
|
|
198
199
|
(0, helpers_1.argument)(1, { name: "version", label: "Version", description: "Package version or distribution tag.", required: false, defaultValue: "latest" })
|
|
@@ -40,8 +40,9 @@ DistTag.metadata = [
|
|
|
40
40
|
subcommand: "add",
|
|
41
41
|
title: "Add distribution tag",
|
|
42
42
|
group: "registry",
|
|
43
|
+
groupPriority: 9,
|
|
43
44
|
description: "Add a distribution tag to a package release.",
|
|
44
|
-
icon: "
|
|
45
|
+
icon: "TagPlus",
|
|
45
46
|
arguments: [
|
|
46
47
|
(0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package name." }),
|
|
47
48
|
(0, helpers_1.argument)(1, { name: "version", label: "Version", description: "Release version." }),
|
|
@@ -57,9 +58,10 @@ DistTag.metadata = [
|
|
|
57
58
|
command: "dist-tag",
|
|
58
59
|
subcommand: "rm",
|
|
59
60
|
title: "Remove distribution tag",
|
|
60
|
-
group: "
|
|
61
|
+
group: "registry",
|
|
62
|
+
groupPriority: 8,
|
|
61
63
|
description: "Remove a distribution tag from a package.",
|
|
62
|
-
icon: "
|
|
64
|
+
icon: "TagX",
|
|
63
65
|
arguments: [
|
|
64
66
|
(0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package name." }),
|
|
65
67
|
(0, helpers_1.argument)(1, { name: "tag", label: "Tag", description: "Distribution tag to remove." })
|
|
@@ -134,14 +134,15 @@ FindDependencies.metadata = {
|
|
|
134
134
|
command: "find-dependencies",
|
|
135
135
|
title: "Find dependencies",
|
|
136
136
|
group: "utility",
|
|
137
|
+
groupPriority: 9,
|
|
137
138
|
description: "Find TRM, customer package, and SAP object dependencies for an SAP package.",
|
|
138
139
|
icon: "Search",
|
|
139
140
|
arguments: [
|
|
140
|
-
(0, helpers_1.argument)(0, { name: "sapPackage", cliName: "sap package", label: "SAP package", description: "SAP package to inspect." })
|
|
141
|
+
(0, helpers_1.argument)(0, { name: "sapPackage", cliName: "sap package", label: "SAP package", description: "SAP package to inspect.", control: "sap-package-picker" })
|
|
141
142
|
],
|
|
142
143
|
options: [
|
|
143
144
|
(0, helpers_1.option)("--sap-entries", { name: "sapEntries", label: "SAP entries", description: "Include required SAP table entries and objects.", control: "checkbox", defaultValue: false }),
|
|
144
|
-
(0, helpers_1.option)("--no-prompts", { name: "prompts", label: "Prompts", description: "Disable prompts and use automatic decisions.", control: "checkbox", defaultValue: true }),
|
|
145
|
+
(0, helpers_1.option)("--no-prompts", { name: "prompts", label: "Prompts", description: "Disable prompts and use automatic decisions.", control: "checkbox", defaultValue: true, negated: true }),
|
|
145
146
|
(0, helpers_1.option)("--trm-found-in", { name: "trmFoundIn", label: "Dependency references", description: "Show which objects reference each TRM dependency.", control: "checkbox", defaultValue: false })
|
|
146
147
|
],
|
|
147
148
|
requirements: {
|
|
@@ -178,18 +178,18 @@ class Install extends AbstractCommand_1.AbstractCommand {
|
|
|
178
178
|
}
|
|
179
179
|
exports.Install = Install;
|
|
180
180
|
Install.installOptions = [
|
|
181
|
-
(0, helpers_1.option)("-T, --transport-layer <transport layer>", { name: "transportLayer", label: "Transport layer", description: "Transport layer for imported package objects. Defaults to the system transport layer." }),
|
|
182
|
-
(0, helpers_1.option)("--no-deps", { name: "deps", label: "Dependencies", description: "Skip dependency installation.", control: "checkbox", defaultValue: true }),
|
|
183
|
-
(0, helpers_1.option)("--no-obj-type", { name: "objType", label: "Object type checks", description: "Skip object type checks before import.", control: "checkbox", defaultValue: true }),
|
|
184
|
-
(0, helpers_1.option)("--no-obj-check", { name: "objCheck", label: "Object existence checks", description: "Skip object existence checks before import.", control: "checkbox", defaultValue: true }),
|
|
185
|
-
(0, helpers_1.option)("--no-sap-entries", { name: "sapEntries", label: "SAP entries", description: "Skip SAP entry checks before import.", control: "checkbox", defaultValue: true }),
|
|
186
|
-
(0, helpers_1.option)("--no-lang-tr", { name: "langTr", label: "Language transport", description: "Skip language transport import.", control: "checkbox", defaultValue: true }),
|
|
187
|
-
(0, helpers_1.option)("--no-cust-tr", { name: "custTr", label: "Customizing transports", description: "Skip customizing transport import.", control: "checkbox", defaultValue: true }),
|
|
188
|
-
(0, helpers_1.option)("--no-install-tr", { name: "installTr", label: "Install transport", description: "Do not create an install transport.", control: "checkbox", defaultValue: true }),
|
|
181
|
+
(0, helpers_1.option)("-T, --transport-layer <transport layer>", { name: "transportLayer", label: "Transport layer", description: "Transport layer for imported package objects. Defaults to the system transport layer.", control: "transport-layer-picker" }),
|
|
182
|
+
(0, helpers_1.option)("--no-deps", { name: "deps", label: "Dependencies", description: "Skip dependency installation.", control: "checkbox", defaultValue: true, negated: true }),
|
|
183
|
+
(0, helpers_1.option)("--no-obj-type", { name: "objType", label: "Object type checks", description: "Skip object type checks before import.", control: "checkbox", defaultValue: true, negated: true }),
|
|
184
|
+
(0, helpers_1.option)("--no-obj-check", { name: "objCheck", label: "Object existence checks", description: "Skip object existence checks before import.", control: "checkbox", defaultValue: true, negated: true }),
|
|
185
|
+
(0, helpers_1.option)("--no-sap-entries", { name: "sapEntries", label: "SAP entries", description: "Skip SAP entry checks before import.", control: "checkbox", defaultValue: true, negated: true }),
|
|
186
|
+
(0, helpers_1.option)("--no-lang-tr", { name: "langTr", label: "Language transport", description: "Skip language transport import.", control: "checkbox", defaultValue: true, negated: true }),
|
|
187
|
+
(0, helpers_1.option)("--no-cust-tr", { name: "custTr", label: "Customizing transports", description: "Skip customizing transport import.", control: "checkbox", defaultValue: true, negated: true }),
|
|
188
|
+
(0, helpers_1.option)("--no-install-tr", { name: "installTr", label: "Install transport", description: "Do not create an install transport.", control: "checkbox", defaultValue: true, negated: true }),
|
|
189
189
|
(0, helpers_1.option)("--namespace", { name: "namespace", label: "Customer namespace", description: "Import the customer namespace.", control: "checkbox" }),
|
|
190
190
|
(0, helpers_1.option)("--package-replacements <replacements>", { name: "packageReplacements", label: "Package replacements", description: "SAP package replacements as JSON, or a path to a JSON file.", control: "textarea" }),
|
|
191
|
-
(0, helpers_1.option)("--install-tr-target <target>", { name: "installTrTarget", label: "Install transport target", description: "Target system for the install transport." }),
|
|
192
|
-
(0, helpers_1.option)("--no-prompts", { name: "prompts", label: "Prompts", description: "Disable prompts and use automatic decisions.", control: "checkbox", defaultValue: true, guiRelevant: false })
|
|
191
|
+
(0, helpers_1.option)("--install-tr-target <target>", { name: "installTrTarget", label: "Install transport target", description: "Target system for the install transport.", control: "transport-target-picker" }),
|
|
192
|
+
(0, helpers_1.option)("--no-prompts", { name: "prompts", label: "Prompts", description: "Disable prompts and use automatic decisions.", control: "checkbox", defaultValue: true, guiRelevant: false, negated: true })
|
|
193
193
|
];
|
|
194
194
|
Install.metadata = [
|
|
195
195
|
{
|
|
@@ -200,7 +200,7 @@ Install.metadata = [
|
|
|
200
200
|
group: "package",
|
|
201
201
|
groupPriority: 10,
|
|
202
202
|
description: "Install a package from the registry into the connected system.",
|
|
203
|
-
icon: "
|
|
203
|
+
icon: "PackagePlus",
|
|
204
204
|
arguments: [
|
|
205
205
|
(0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package name." }),
|
|
206
206
|
(0, helpers_1.argument)(1, { name: "version", label: "Version", description: "Release version or distribution tag.", required: false, defaultValue: "latest" })
|
|
@@ -227,7 +227,7 @@ Install.metadata = [
|
|
|
227
227
|
(0, helpers_1.argument)(1, { name: "version", label: "Version", description: "Release version or distribution tag.", required: false, defaultValue: "latest" })
|
|
228
228
|
],
|
|
229
229
|
options: [
|
|
230
|
-
(0, helpers_1.option)("-L, --lock-file", { name: "lockFile", label: "Lockfile", description: "Lockfile to use for installation.", control: "file-picker", defaultValue: "trm-lock.json" }),
|
|
230
|
+
(0, helpers_1.option)("-L, --lock-file", { name: "lockFile", label: "Lockfile", description: "Lockfile to use for installation.", control: "file-picker", pickerType: "input", defaultValue: "trm-lock.json" }),
|
|
231
231
|
...Install.installOptions
|
|
232
232
|
],
|
|
233
233
|
requirements: {
|
|
@@ -265,9 +265,9 @@ Install.metadata = [
|
|
|
265
265
|
group: "package",
|
|
266
266
|
groupPriority: 8,
|
|
267
267
|
description: "Import a package file into the connected system.",
|
|
268
|
-
icon: "
|
|
268
|
+
icon: "FolderUp",
|
|
269
269
|
arguments: [
|
|
270
|
-
(0, helpers_1.argument)(0, { name: "filename", label: "Package file", description: "Package file name or path.", control: "file-picker" })
|
|
270
|
+
(0, helpers_1.argument)(0, { name: "filename", label: "Package file", description: "Package file name or path.", control: "file-picker", pickerType: "input" })
|
|
271
271
|
],
|
|
272
272
|
options: Install.installOptions,
|
|
273
273
|
requirements: {
|
|
@@ -42,7 +42,7 @@ Lock.metadata = {
|
|
|
42
42
|
icon: "LockKeyhole",
|
|
43
43
|
arguments: [
|
|
44
44
|
(0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package to lock." }),
|
|
45
|
-
(0, helpers_1.argument)(1, { name: "outputPath", cliName: "output path", label: "Output path", description: "Path where the lockfile will be written.", required: false, defaultValue: "trm-lock.json", control: "file-picker" })
|
|
45
|
+
(0, helpers_1.argument)(1, { name: "outputPath", cliName: "output path", label: "Output path", description: "Path where the lockfile will be written.", required: false, defaultValue: "trm-lock.json", control: "file-picker", pickerType: "output" })
|
|
46
46
|
],
|
|
47
47
|
options: [],
|
|
48
48
|
requirements: {
|
|
@@ -116,12 +116,12 @@ class Publish extends AbstractCommand_1.AbstractCommand {
|
|
|
116
116
|
}
|
|
117
117
|
exports.Publish = Publish;
|
|
118
118
|
Publish.releaseOptions = [
|
|
119
|
-
(0, helpers_1.option)("-P, --sap-package <sap package>", { name: "sapPackage", label: "SAP package", description: "SAP package that owns the release objects." }),
|
|
120
|
-
(0, helpers_1.option)("-T, --target <target>", { name: "target", label: "Transport target", description: "Target system for release transports." }),
|
|
121
|
-
(0, helpers_1.option)("--no-lang-tr", { name: "langTr", label: "Language transport", description: "Skip language transport generation.", control: "checkbox", defaultValue: true }),
|
|
122
|
-
(0, helpers_1.option)("--no-cust-tr", { name: "custTr", label: "Customizing transport", description: "Skip customizing transport generation.", control: "checkbox", defaultValue: true }),
|
|
119
|
+
(0, helpers_1.option)("-P, --sap-package <sap package>", { name: "sapPackage", label: "SAP package", description: "SAP package that owns the release objects.", control: "sap-package-picker" }),
|
|
120
|
+
(0, helpers_1.option)("-T, --target <target>", { name: "target", label: "Transport target", description: "Target system for release transports.", control: "transport-target-picker" }),
|
|
121
|
+
(0, helpers_1.option)("--no-lang-tr", { name: "langTr", label: "Language transport", description: "Skip language transport generation.", control: "checkbox", defaultValue: true, negated: true }),
|
|
122
|
+
(0, helpers_1.option)("--no-cust-tr", { name: "custTr", label: "Customizing transport", description: "Skip customizing transport generation.", control: "checkbox", defaultValue: true, negated: true }),
|
|
123
123
|
(0, helpers_1.option)("--cust <customizing>", { name: "cust", label: "Customizing transports", description: "Customizing transport requests, separated by commas.", multiple: true }),
|
|
124
|
-
(0, helpers_1.option)("--no-auto-deps", { name: "autoDeps", label: "Automatic dependencies", description: "Skip automatic dependency detection.", control: "checkbox", defaultValue: true }),
|
|
124
|
+
(0, helpers_1.option)("--no-auto-deps", { name: "autoDeps", label: "Automatic dependencies", description: "Skip automatic dependency detection.", control: "checkbox", defaultValue: true, negated: true }),
|
|
125
125
|
(0, helpers_1.option)("--authors <authors>", { name: "authors", label: "Authors", description: "Release authors, separated by commas.", multiple: true }),
|
|
126
126
|
(0, helpers_1.option)("--backwards-compatible", { name: "backwardsCompatible", label: "Backwards compatible", description: "Mark the release as backwards compatible.", control: "checkbox" }),
|
|
127
127
|
(0, helpers_1.option)("--description <description>", { name: "description", label: "Description", description: "Release description." }),
|
|
@@ -132,7 +132,7 @@ Publish.releaseOptions = [
|
|
|
132
132
|
(0, helpers_1.option)("--dependencies <dependencies>", { name: "dependencies", label: "Dependencies", description: "Release dependencies as JSON, or a path to a JSON file.", control: "textarea" }),
|
|
133
133
|
(0, helpers_1.option)("--sap-entries <sap entries>", { name: "sapEntries", label: "SAP entries", description: "Release SAP entries as JSON, or a path to a JSON file.", control: "textarea" }),
|
|
134
134
|
(0, helpers_1.option)("--post-activities <post activities>", { name: "postActivities", label: "Post activities", description: "Release post activities as JSON, or a path to a JSON file.", control: "textarea" }),
|
|
135
|
-
(0, helpers_1.option)("--no-prompts", { name: "prompts", label: "Prompts", description: "Disable prompts and use automatic decisions.", control: "checkbox", defaultValue: true, guiRelevant: false })
|
|
135
|
+
(0, helpers_1.option)("--no-prompts", { name: "prompts", label: "Prompts", description: "Disable prompts and use automatic decisions.", control: "checkbox", defaultValue: true, guiRelevant: false, negated: true })
|
|
136
136
|
];
|
|
137
137
|
Publish.metadata = [
|
|
138
138
|
{
|
|
@@ -142,7 +142,7 @@ Publish.metadata = [
|
|
|
142
142
|
group: "package",
|
|
143
143
|
groupPriority: 9,
|
|
144
144
|
description: "Publish a package release to the registry.",
|
|
145
|
-
icon: "
|
|
145
|
+
icon: "Rocket",
|
|
146
146
|
arguments: [
|
|
147
147
|
(0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package name." }),
|
|
148
148
|
(0, helpers_1.argument)(1, { name: "version", label: "Version", description: "Release version to publish.", required: false })
|
|
@@ -154,7 +154,7 @@ Publish.metadata = [
|
|
|
154
154
|
(0, helpers_1.option)("--tag <tag>", { name: "tag", label: "Tags", description: "Release distribution tags, separated by commas.", multiple: true }),
|
|
155
155
|
(0, helpers_1.option)("--private", { name: "private", label: "Private", description: "Mark the package as private. Registry visibility may not be changeable after the first publish.", control: "checkbox" }),
|
|
156
156
|
(0, helpers_1.option)("--readme <readme>", { name: "readme", label: "Readme", description: "Release readme as Markdown, or a path to a Markdown file.", control: "textarea" }),
|
|
157
|
-
(0, helpers_1.option)("--no-keep-manifest", { name: "keepManifest", label: "Reuse manifest", description: "Do not reuse values from the previous release manifest.", control: "checkbox", defaultValue: true }),
|
|
157
|
+
(0, helpers_1.option)("--no-keep-manifest", { name: "keepManifest", label: "Reuse manifest", description: "Do not reuse values from the previous release manifest.", control: "checkbox", defaultValue: true, negated: true }),
|
|
158
158
|
...Publish.releaseOptions
|
|
159
159
|
],
|
|
160
160
|
requirements: {
|
|
@@ -171,11 +171,11 @@ Publish.metadata = [
|
|
|
171
171
|
group: "package",
|
|
172
172
|
groupPriority: 7,
|
|
173
173
|
description: "Export a package release to a local file.",
|
|
174
|
-
icon: "
|
|
174
|
+
icon: "FolderDown",
|
|
175
175
|
arguments: [
|
|
176
176
|
(0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package name." }),
|
|
177
177
|
(0, helpers_1.argument)(1, { name: "version", label: "Version", description: "Release version." }),
|
|
178
|
-
(0, helpers_1.argument)(2, { name: "filename", label: "Output file", description: "Output file name or path.", required: false, control: "file-picker" })
|
|
178
|
+
(0, helpers_1.argument)(2, { name: "filename", label: "Output file", description: "Output file name or path.", required: false, control: "file-picker", pickerType: "output" })
|
|
179
179
|
],
|
|
180
180
|
options: Publish.releaseOptions,
|
|
181
181
|
requirements: {
|
|
@@ -79,6 +79,7 @@ Registry.metadata = [
|
|
|
79
79
|
subcommand: "add",
|
|
80
80
|
title: "Add registry",
|
|
81
81
|
group: "registry",
|
|
82
|
+
guiRelevant: false,
|
|
82
83
|
description: "Add a registry alias.",
|
|
83
84
|
icon: "DatabaseZap",
|
|
84
85
|
arguments: [
|
|
@@ -97,6 +98,7 @@ Registry.metadata = [
|
|
|
97
98
|
subcommand: "rm",
|
|
98
99
|
title: "Remove registry",
|
|
99
100
|
group: "registry",
|
|
101
|
+
guiRelevant: false,
|
|
100
102
|
description: "Remove a registry alias.",
|
|
101
103
|
icon: "DatabaseX",
|
|
102
104
|
arguments: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RegisterCommandOpts } from "../RegisterCommandOpts";
|
|
2
2
|
import type { AbstractCommand } from "../AbstractCommand";
|
|
3
|
-
export type CommandControlType = "text-input" | "password-input" | "number-input" | "checkbox" | "select" | "multiselect" | "file-picker" | "textarea";
|
|
3
|
+
export type CommandControlType = "text-input" | "password-input" | "number-input" | "checkbox" | "select" | "multiselect" | "file-picker" | "textarea" | "transport-layer-picker" | "transport-target-picker" | "sap-package-picker";
|
|
4
4
|
export interface CommandValueChoice {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string | number | boolean;
|
|
@@ -13,6 +13,7 @@ export interface CommandFieldMetadata {
|
|
|
13
13
|
description: string;
|
|
14
14
|
required: boolean;
|
|
15
15
|
control: CommandControlType;
|
|
16
|
+
pickerType?: "input" | "output";
|
|
16
17
|
defaultValue?: unknown;
|
|
17
18
|
choices?: CommandValueChoice[];
|
|
18
19
|
placeholder?: string;
|
|
@@ -27,6 +28,7 @@ export interface CommandArgumentMetadata extends CommandFieldMetadata {
|
|
|
27
28
|
export interface CommandOptionMetadata extends CommandFieldMetadata {
|
|
28
29
|
kind: "option";
|
|
29
30
|
flags: string;
|
|
31
|
+
negated?: boolean;
|
|
30
32
|
}
|
|
31
33
|
export type CommandGroup = "package" | "registry" | "system" | "utility";
|
|
32
34
|
export interface CommandMetadata {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommandArgumentMetadata, CommandFieldMetadata, CommandOptionMetadata } from "./CommandMetadata";
|
|
2
2
|
type FieldArgs = Omit<CommandFieldMetadata, "required" | "control"> & Partial<Pick<CommandFieldMetadata, "required" | "control">>;
|
|
3
|
+
type OptionArgs = FieldArgs & Partial<Pick<CommandOptionMetadata, "negated">>;
|
|
3
4
|
export declare function argument(position: number, args: FieldArgs): CommandArgumentMetadata;
|
|
4
|
-
export declare function option(flags: string, args:
|
|
5
|
+
export declare function option(flags: string, args: OptionArgs): CommandOptionMetadata;
|
|
5
6
|
export {};
|
|
@@ -13,6 +13,7 @@ function argument(position, args) {
|
|
|
13
13
|
description: args.description,
|
|
14
14
|
required: (_a = args.required) !== null && _a !== void 0 ? _a : true,
|
|
15
15
|
control: (_b = args.control) !== null && _b !== void 0 ? _b : "text-input",
|
|
16
|
+
pickerType: args.pickerType,
|
|
16
17
|
defaultValue: args.defaultValue,
|
|
17
18
|
choices: args.choices,
|
|
18
19
|
placeholder: args.placeholder,
|
|
@@ -26,12 +27,14 @@ function option(flags, args) {
|
|
|
26
27
|
return {
|
|
27
28
|
kind: "option",
|
|
28
29
|
flags,
|
|
30
|
+
negated: args.negated,
|
|
29
31
|
name: args.name,
|
|
30
32
|
cliName: args.cliName,
|
|
31
33
|
label: args.label,
|
|
32
34
|
description: args.description,
|
|
33
35
|
required: (_a = args.required) !== null && _a !== void 0 ? _a : false,
|
|
34
36
|
control: (_b = args.control) !== null && _b !== void 0 ? _b : "text-input",
|
|
37
|
+
pickerType: args.pickerType,
|
|
35
38
|
defaultValue: args.defaultValue,
|
|
36
39
|
choices: args.choices,
|
|
37
40
|
placeholder: args.placeholder,
|