diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-12 14:52:49 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-05-12 14:52:49 +0300 |
| commit | 62057bd84dd0b26f3ae4a35c1d562311dd83632b (patch) | |
| tree | 032125c8e520e51c450197fa22f35e4986a078ca /README.md | |
| parent | a2b4dc764a3bab0756803c992873ae6ece621f0f (diff) | |
| download | it-kariera-exam-template-62057bd84dd0b26f3ae4a35c1d562311dd83632b.tar it-kariera-exam-template-62057bd84dd0b26f3ae4a35c1d562311dd83632b.tar.gz it-kariera-exam-template-62057bd84dd0b26f3ae4a35c1d562311dd83632b.zip | |
Added info about delete features template and rename namespaces scripts and updated README
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -99,6 +99,35 @@ All of the models have all given properties **and a "Guid Id" property**. Only t Controller and Service have **very basic** CRUD of the model. No view links are added, so you'll need to provide them (and to test out if everything work: just edit the link in the browser). +### delete-feature-template + +As the name suggests, it just removes any feature, generated with [add-feature-template](#add-feature-template). Or more precisely, it removes all created files and removes references in edited files. + +**Example**: Let's say we have a project named `CarShop` and we generated a feature called `Car` that we don't want anymore +- The first argument is the name of the project, and the second is that of the feature +```bash +./delete-feature-template.sh CarShop Car +``` + +### rename-namespaces + +`rename-project` and `add-feature-template` use and require all namespaces to start with `ProjectName.` (so, for example, `CarShop.Data.Models`). If you want that first word to be changed to something else or entirely removed, you can use this script. + +**Example**: rename all namespaces from `ExamTemplate....` to `MyShop....` +```bash +./rename-namespaces.sh MyShop +``` + +**Example**: rename all namespaces from `MyShop....` to `CarShop....` +```bash +./rename-namespaces.sh MyShop CarShop +``` + +**Example**: remove the start portion of all namespaces in the `CarShop` project (so form `CarShop.Data.Models` we have `Data.Models`) +```bash +./rename-namespaces.sh -r CarShop +``` + ## Notes There are some configs that I've made that you may want to change. This section explains them. |
