Skip to content

Commit

Permalink
fix: update template argument description (#30)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
ferrarafer and FilledStacks committed Jun 22, 2023
1 parent bc1da93 commit f7fc75b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/commands/create/create_service_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CreateServiceCommand extends Command with ProjectStructureValidator {
abbr: 't',
allowed: kCompiledTemplateTypes[kTemplateNameService],
defaultsTo: 'empty',
help: kCommandHelpCreateAppTemplate,
help: kCommandHelpCreateServiceTemplate,
)
..addOption(
ksConfigPath,
Expand Down
3 changes: 3 additions & 0 deletions lib/src/constants/message_constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.';

Expand Down

0 comments on commit f7fc75b

Please sign in to comment.