Skip to content

Commit

Permalink
feat(@schematics/angular): add prompts for all name options (#12519)
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and vikerman committed Oct 10, 2018
1 parent b8eee02 commit e9a8c3c
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion packages/schematics/angular/application/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the application?"
},
"experimentalIvy": {
"description": "EXPERIMENTAL: Specifies whether to create a new application which uses the Ivy rendering engine.",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/class/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the class?"
},
"path": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/component/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the component?"
},
"inlineStyle": {
"description": "Specifies if the style will be in the ts file.",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/directive/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the directive?"
},
"path": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/enum/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the enum?"
},
"path": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/guard/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the guard?"
},
"spec": {
"type": "boolean",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/interface/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the interface?"
},
"path": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/library/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the library?"
},
"entryFile": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/module/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the module?"
},
"path": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/pipe/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the pipe?"
},
"path": {
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion packages/schematics/angular/service/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"$default": {
"$source": "argv",
"index": 0
}
},
"x-prompt": "What name would you like to use for the service?"
},
"path": {
"type": "string",
Expand Down

0 comments on commit e9a8c3c

Please sign in to comment.