Working on starter.sh

This commit is contained in:
Hillel Coren 2020-03-02 17:52:18 +02:00
parent e283452507
commit 9b289db4e7
1 changed files with 5 additions and 1 deletions

View File

@ -187,13 +187,17 @@ else
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
comment="STARTER: states switch list - do not remove comment"
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}State.map;${lineBreak}"
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}State.list;${lineBreak}"
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
comment="STARTER: states switch map - do not remove comment"
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}State.map;${lineBreak}"
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
comment="STARTER: states switch - do not remove comment"
code="case EntityType.${module_camel}:${lineBreak}return ${module_camel}UIState;${lineBreak}"
sed -i -e "s/$comment/$comment${lineBreak}$code/g" ./lib/redux/app/app_state.dart
comment="STARTER: state getters - do not remove comment"
code="${Module}State get ${module_camel}State => selectedCompanyState.${module_camel}State;${lineBreak}"
code="${code}ListUIState get ${module_camel}ListState => uiState.${module_camel}UIState.listUIState;${lineBreak}"