@wocker/core 1.0.17-dev.1 → 1.0.17-dev.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/lib/makes/Scanner.js +2 -1
- package/package.json +1 -1
package/lib/makes/Scanner.js
CHANGED
|
@@ -96,6 +96,7 @@ class Scanner {
|
|
|
96
96
|
if (!descriptor) {
|
|
97
97
|
continue;
|
|
98
98
|
}
|
|
99
|
+
const description = Reflect.getMetadata(env_1.COMMAND_DESCRIPTION_METADATA, descriptor.value);
|
|
99
100
|
const commandName = Reflect.getMetadata(env_1.COMMAND_METADATA, descriptor.value);
|
|
100
101
|
const completions = (Reflect.getMetadata(env_1.COMPLETION_METADATA, descriptor.value) || [])
|
|
101
102
|
.map((completion) => {
|
|
@@ -114,7 +115,7 @@ class Scanner {
|
|
|
114
115
|
const argsMeta = Reflect.getMetadata(env_1.ARGS_METADATA, type, name) || [];
|
|
115
116
|
const command = cli.command(commandName);
|
|
116
117
|
command.help({
|
|
117
|
-
description:
|
|
118
|
+
description: description
|
|
118
119
|
});
|
|
119
120
|
for (const argMeta of argsMeta) {
|
|
120
121
|
if (argMeta.type === "option") {
|