Skip to content

Commit 2ec4d2f

Browse files
Hage Yaapahacksparrow
authored andcommitted
fix: make lb model prompts clearer
Make `lb model` prompts clearer.
1 parent b692f45 commit 2ec4d2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/generators/model/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ module.exports = class ModelGenerator extends ArtifactGenerator {
133133
},
134134
{
135135
name: 'id',
136-
message: 'Is ID field?',
136+
message: `Is ${chalk.yellow(this.propName)} the ID property?`,
137137
type: 'confirm',
138138
default: false,
139139
when: answers => {
@@ -145,7 +145,7 @@ module.exports = class ModelGenerator extends ArtifactGenerator {
145145
},
146146
{
147147
name: 'required',
148-
message: 'Required?:',
148+
message: 'Is it required?:',
149149
type: 'confirm',
150150
default: false,
151151
},

0 commit comments

Comments
 (0)