From f7fc75bc9452e7b8f4162d3bce536205815b3ec9 Mon Sep 17 00:00:00 2001 From: Fernando Ferrara Date: Wed, 21 Jun 2023 09:10:24 -0300 Subject: [PATCH] fix: update template argument description (#30) * Remove kTemplateNameUpdate from update command * Add kTemplateTypesMap to template constants * Add method to create kCompiledTemplateTypes * Update commands to use kCompiledTemplateTypes * Avoid showing platforms args when nothing passed * Update runCreateApp signature * Add packageDescription property to TemplateHelper * Set packageDescription on create app command * Improve analytics on commands * Update templates * fix: update template argument description Update template argument description on create service command. --------- Co-authored-by: Dane Mackier --- lib/src/commands/create/create_service_command.dart | 2 +- lib/src/constants/message_constants.dart | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/commands/create/create_service_command.dart b/lib/src/commands/create/create_service_command.dart index d043b4e..3fcdeaa 100644 --- a/lib/src/commands/create/create_service_command.dart +++ b/lib/src/commands/create/create_service_command.dart @@ -41,7 +41,7 @@ class CreateServiceCommand extends Command with ProjectStructureValidator { abbr: 't', allowed: kCompiledTemplateTypes[kTemplateNameService], defaultsTo: 'empty', - help: kCommandHelpCreateAppTemplate, + help: kCommandHelpCreateServiceTemplate, ) ..addOption( ksConfigPath, diff --git a/lib/src/constants/message_constants.dart b/lib/src/constants/message_constants.dart index 9437290..4e7a533 100644 --- a/lib/src/constants/message_constants.dart +++ b/lib/src/constants/message_constants.dart @@ -61,6 +61,9 @@ const String kCommandHelpConfigFilePath = const String kCommandHelpPath = 'Sets the relative path for the component.'; +const String kCommandHelpCreateServiceTemplate = + 'Selects the type of service to create instead of the default empty service.'; + const String kCommandHelpCreateViewTemplate = 'Selects the type of view to create instead of the default empty view.';