Loading...
Loading...
Compare original and translation side by side
| Field | Required | Meaning |
|---|---|---|
| yes | How the generator is invoked |
| yes | Template folder, relative to the workspace root |
| no | Values the template renders with, as JSON Schema fragments |
| no | Where this generator's output already lives |
| no | Shown when generators are listed |
| no | Lowest conformance score this generator's instances may have, 0 to 1 |
aliasesconformetry templatesinputsinstances| 字段 | 是否必填 | 含义 |
|---|---|---|
| 是 | 调用生成器时使用的名称 |
| 是 | 相对于工作区根目录的模板文件夹 |
| 否 | 模板渲染时使用的值,以 JSON Schema 片段表示 |
| 否 | 此生成器现有输出的位置 |
| 否 | 列出生成器时显示的说明 |
| 否 | 此生成器的实例可具有的最低符合性得分,取值为 0 到 1 |
aliasesconformetry templatesinputsinstancesnametemplatePathallvalidate --templates allnametemplatePathallvalidate --templates allinstancespatternstagssubstitutionsthresholdtagspatternssrc/modules/*instancespatternstagssubstitutionsthresholdtagspatternssrc/modules/*| Key | Effect |
|---|---|
| The prompt text |
| Turns the prompt into a list, and restricts the value |
| Length validation |
| Tested as a unicode regular expression |
projectmoduletypedirectoryprojectconfighelpinstancePathtemplate--templatename| 键 | 作用 |
|---|---|
| 提示文本 |
| 将提示转换为列表,并限制可选值 |
| 长度验证 |
| 使用 Unicode 正则表达式进行测试 |
projectmoduletypedirectoryprojectconfighelpinstancePathtemplate--templatename{{field}}{{{field}}}{{nameKebabCase}}.service.tsorders.service.ts| Placeholder | |
|---|---|
| |
| |
| |
| |
MissingSubstitutionError{{#owner}}Owner: {{owner}}{{/owner}}{{^owner}}Unowned.{{/owner}}ownersubstitutions: { owner: "" }{{field}}{{{field}}}{{nameKebabCase}}.service.tsorders.service.ts| 占位符 | |
|---|---|
| |
| |
| |
| |
MissingSubstitutionError{{#owner}}Owner: {{owner}}{{/owner}}{{^owner}}Unowned.{{/owner}}ownersubstitutions: { owner: "" }TODOTODOthreshold--threshold11thresholdthreshold--threshold11nx syncnx synctemplatePathnx syncnx synctemplatePathconformetry-validateconformetry-generateconformetry-validateconformetry-generateconformetry-exampleshello-templatecase-variantsscoring-thresholdsambiguous-attributionnx-hostfailure-modesconformetry-exampleshello-templatecase-variantsscoring-thresholdsambiguous-attributionnx-hostfailure-modes