@hcmai/cli 0.21.4 → 0.21.5
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/index.js
CHANGED
|
@@ -4771,9 +4771,17 @@ function formatDescriptionTable(desc, verbose = false) {
|
|
|
4771
4771
|
const req = f.required ? " required" : " ";
|
|
4772
4772
|
const extras = verbose ? [f.label, f.description, formatEnumValues(f.enums)] : [f.label];
|
|
4773
4773
|
const lbl = extras.filter((s) => s && s.length > 0).map((s) => ` ${s}`).join("");
|
|
4774
|
-
const
|
|
4774
|
+
const hints = [f.i18n && "i18n", f.jsonObject && "json", f.decimalNumber && "decimal"].filter(Boolean).map((hint) => ` (${hint})`).join("");
|
|
4775
|
+
const type = f.type + hints;
|
|
4776
|
+
const writeHints = [f.readOnly && "readonly", f.systemManaged && "system-managed"].filter(Boolean).map((hint) => ` [${hint}]`).join("");
|
|
4775
4777
|
const objectRef = f.object ? ` \u2192 ${f.object}` : "";
|
|
4776
|
-
lines.push(` ${f.name.padEnd(20)} ${type.padEnd(14)} ${req}${lbl}${objectRef}`);
|
|
4778
|
+
lines.push(` ${f.name.padEnd(20)} ${type.padEnd(14)} ${req}${lbl}${objectRef}${writeHints}`);
|
|
4779
|
+
}
|
|
4780
|
+
if (desc.fields.some((f) => f.jsonObject)) {
|
|
4781
|
+
lines.push(" \u2139\uFE0F (json) = JSON \u7ED3\u6784\uFF0C\u6309\u5B57\u6BB5\u8981\u6C42\u4F20\u5BF9\u8C61\u6216\u6570\u7EC4\uFF1B\u4E0D\u8981\u6309\u666E\u901A\u5B57\u7B26\u4E32\u731C\u503C");
|
|
4782
|
+
}
|
|
4783
|
+
if (desc.fields.some((f) => f.decimalNumber)) {
|
|
4784
|
+
lines.push(" \u2139\uFE0F (decimal) = \u7CBE\u786E\u5C0F\u6570\uFF0C\u53EF\u4F20\u6570\u503C\u6216\u5341\u8FDB\u5236\u5B57\u7B26\u4E32");
|
|
4777
4785
|
}
|
|
4778
4786
|
if (desc.fields.some((f) => f.object)) {
|
|
4779
4787
|
lines.push(
|