From e9a8c3cfa89e42322d53883b276e16babb572032 Mon Sep 17 00:00:00 2001 From: clydin <19598772+clydin@users.noreply.github.com> Date: Wed, 10 Oct 2018 15:11:12 -0400 Subject: [PATCH] feat(@schematics/angular): add prompts for all name options (#12519) --- packages/schematics/angular/application/schema.json | 3 ++- packages/schematics/angular/class/schema.json | 3 ++- packages/schematics/angular/component/schema.json | 3 ++- packages/schematics/angular/directive/schema.json | 3 ++- packages/schematics/angular/enum/schema.json | 3 ++- packages/schematics/angular/guard/schema.json | 3 ++- packages/schematics/angular/interface/schema.json | 3 ++- packages/schematics/angular/library/schema.json | 3 ++- packages/schematics/angular/module/schema.json | 3 ++- packages/schematics/angular/pipe/schema.json | 3 ++- packages/schematics/angular/service/schema.json | 3 ++- 11 files changed, 22 insertions(+), 11 deletions(-) diff --git a/packages/schematics/angular/application/schema.json b/packages/schematics/angular/application/schema.json index cb833cd4b059..86d71341402c 100644 --- a/packages/schematics/angular/application/schema.json +++ b/packages/schematics/angular/application/schema.json @@ -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.", diff --git a/packages/schematics/angular/class/schema.json b/packages/schematics/angular/class/schema.json index 22323008c5f3..9995a0b4c8f9 100644 --- a/packages/schematics/angular/class/schema.json +++ b/packages/schematics/angular/class/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the class?" }, "path": { "type": "string", diff --git a/packages/schematics/angular/component/schema.json b/packages/schematics/angular/component/schema.json index 9eb811586b08..160cce8d80f6 100644 --- a/packages/schematics/angular/component/schema.json +++ b/packages/schematics/angular/component/schema.json @@ -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.", diff --git a/packages/schematics/angular/directive/schema.json b/packages/schematics/angular/directive/schema.json index 9562c5348c1c..259c1bb392d4 100644 --- a/packages/schematics/angular/directive/schema.json +++ b/packages/schematics/angular/directive/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the directive?" }, "path": { "type": "string", diff --git a/packages/schematics/angular/enum/schema.json b/packages/schematics/angular/enum/schema.json index f9ce0b537289..50f165a4748c 100644 --- a/packages/schematics/angular/enum/schema.json +++ b/packages/schematics/angular/enum/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the enum?" }, "path": { "type": "string", diff --git a/packages/schematics/angular/guard/schema.json b/packages/schematics/angular/guard/schema.json index 63cc33b91f78..ac167fb21c39 100644 --- a/packages/schematics/angular/guard/schema.json +++ b/packages/schematics/angular/guard/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the guard?" }, "spec": { "type": "boolean", diff --git a/packages/schematics/angular/interface/schema.json b/packages/schematics/angular/interface/schema.json index 9b747b27b2a6..63168a32b8c3 100644 --- a/packages/schematics/angular/interface/schema.json +++ b/packages/schematics/angular/interface/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the interface?" }, "path": { "type": "string", diff --git a/packages/schematics/angular/library/schema.json b/packages/schematics/angular/library/schema.json index 52cd9e121161..0ce8e9eac44b 100644 --- a/packages/schematics/angular/library/schema.json +++ b/packages/schematics/angular/library/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the library?" }, "entryFile": { "type": "string", diff --git a/packages/schematics/angular/module/schema.json b/packages/schematics/angular/module/schema.json index c52ffab315a0..20617e405f3b 100644 --- a/packages/schematics/angular/module/schema.json +++ b/packages/schematics/angular/module/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the module?" }, "path": { "type": "string", diff --git a/packages/schematics/angular/pipe/schema.json b/packages/schematics/angular/pipe/schema.json index 1dd16bec9fe2..ff0b21d8eff3 100644 --- a/packages/schematics/angular/pipe/schema.json +++ b/packages/schematics/angular/pipe/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the pipe?" }, "path": { "type": "string", diff --git a/packages/schematics/angular/service/schema.json b/packages/schematics/angular/service/schema.json index ae2b105b92d6..b9cd38ae59df 100644 --- a/packages/schematics/angular/service/schema.json +++ b/packages/schematics/angular/service/schema.json @@ -10,7 +10,8 @@ "$default": { "$source": "argv", "index": 0 - } + }, + "x-prompt": "What name would you like to use for the service?" }, "path": { "type": "string",