Skip to content

Commit 132e986

Browse files
aaqilnizdhmlau
authored andcommitted
fix(cli): update --help for relation
Signed-off-by: Muhammad Aaqil <aaqilniz@yahoo.com>
1 parent 611a533 commit 132e986

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/cli/.yo-rc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@
14151415
"foreignKeyName": {
14161416
"type": "String",
14171417
"required": false,
1418-
"description": "Destination model foreign key name",
1418+
"description": "Destination model foreign key name (optional, provide only when there is a custom foreign key)",
14191419
"name": "foreignKeyName",
14201420
"hide": false
14211421
},

packages/cli/generators/relation/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ module.exports = class RelationGenerator extends ArtifactGenerator {
128128
this.option('foreignKeyName', {
129129
type: String,
130130
required: false,
131-
description: g.f('Destination model foreign key name'),
131+
description: g.f(
132+
'Destination model foreign key name (optional, provide only when there is a custom foreign key)',
133+
),
132134
});
133135

134136
this.option('relationName', {

packages/cli/intl/en/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"bfd42878b3c50994368322098aed9e42": "include Dockerfile and .dockerignore",
152152
"c1f96ff7ee37bcc6aa150ae5d0dbc3bb": "What is the type of your ID?",
153153
"c3eece87ffd6970cb83a75715824dce7": "include service-proxy imports and ServiceMixin",
154-
"c87a36fbb5183525d0006021aec56a91": "Destination model foreign key name",
154+
"c87a36fbb5183525d0006021aec56a91": "Destination model foreign key name (optional, provide only when there is a custom foreign key)",
155155
"c8d3e70199f75ca1f1d0bd9af1d62d38": "model does not exist.",
156156
"c92e838c1513ce96008d7bfee201e1e9": "A valid datasource name",
157157
"ca660806a44ff651cd28cf4a3dddc686": "Do not remember prompt answers",

packages/cli/snapshots/integration/cli/cli.integration.snapshots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ exports[`cli saves command metadata to .yo-rc.json 1`] = `
14731473
"foreignKeyName": {
14741474
"type": "String",
14751475
"required": false,
1476-
"description": "Destination model foreign key name",
1476+
"description": "Destination model foreign key name (optional, provide only when there is a custom foreign key)",
14771477
"name": "foreignKeyName",
14781478
"hide": false
14791479
},

0 commit comments

Comments
 (0)