We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef9de61 commit 739723cCopy full SHA for 739723c
1 file changed
lib/actions/add-model/index.js
@@ -70,19 +70,21 @@ async function gatherModelProperties () {
70
} // gatherModelProperties
71
72
async function * gatherModelProperty () {
73
+ console.log(c.bold('Model properties:'))
74
while (true) {
75
let propertyDetails = {}
76
77
const questions = [
78
{
79
type: 'input',
80
name: 'key',
- message: 'Property name'
81
+ message: 'Property name (hit Enter to quit)'
82
},
83
- type: 'input',
84
+ type: 'select',
85
name: 'typeHint',
- message: 'Property type'
86
+ message: 'Property type',
87
+ choices: Scaffold.ModelTypes()
88
89
90
type: 'confirm',
0 commit comments