aboutsummaryrefslogtreecommitdiff
path: root/tools/delete-feature-template.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/delete-feature-template.sh')
-rwxr-xr-xtools/delete-feature-template.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/delete-feature-template.sh b/tools/delete-feature-template.sh
index 29484dd..5290c6c 100755
--- a/tools/delete-feature-template.sh
+++ b/tools/delete-feature-template.sh
@@ -24,8 +24,8 @@ feature_name="$2"
dir="../$project_name/Data"
-rm -f $dir/Models/$feature_name.cs
-sed -i "/$feature_name/d" $dir/${project_name}Context.cs
+rm -f $dir/${project_name}.Data.Models/$feature_name.cs
+sed -i "/$feature_name/d" $dir/${project_name}.Data/${project_name}Context.cs
# }}} =============================<
@@ -34,9 +34,9 @@ sed -i "/$feature_name/d" $dir/${project_name}Context.cs
dir="../$project_name/Services"
-rm -f $dir/Configurations/Service${feature_name}Mappings.cs
-rm -rf $dir/Models/$feature_name
-rm -f $dir/${feature_name}Service.cs
+rm -f $dir/${project_name}.Services/Configurations/Service${feature_name}Mappings.cs
+rm -rf $dir/${project_name}.Services.Models/$feature_name
+rm -f $dir/${project_name}.Services/${feature_name}Service.cs
# }}} =============================<
@@ -45,11 +45,11 @@ rm -f $dir/${feature_name}Service.cs
dir="../$project_name/Web"
-rm -f $dir/Configurations/Controller${feature_name}Mappings.cs
-rm -f $dir/Controllers/${feature_name}Controller.cs
-rm -rf $dir/Models/$feature_name
-rm -rf $dir/Views/$feature_name
-sed -i "/$feature_name/d" $dir/Views/_ViewImports.cshtml
-sed -i "/$feature_name/d" $dir/Startup.cs
+rm -f $dir/${project_name}.Web/Configurations/Controller${feature_name}Mappings.cs
+rm -f $dir/${project_name}.Web/Controllers/${feature_name}Controller.cs
+rm -rf $dir/${project_name}.Web.Models/$feature_name
+rm -rf $dir/${project_name}.Web/Views/$feature_name
+sed -i "/$feature_name/d" $dir/${project_name}.Web/Views/_ViewImports.cshtml
+sed -i "/$feature_name/d" $dir/${project_name}.Web/Startup.cs
# }}} =============================<