aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/add-feature-template.sh11
-rwxr-xr-xtools/delete-feature-template.sh11
-rwxr-xr-xtools/rename-namespaces.sh16
-rwxr-xr-xtools/rename-project.sh14
4 files changed, 52 insertions, 0 deletions
diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh
index 51f1990..73fe696 100755
--- a/tools/add-feature-template.sh
+++ b/tools/add-feature-template.sh
@@ -1,5 +1,16 @@
#!/bin/bash
+if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-?" ]; then
+ cat <<EOF
+./add-feature-template.sh [ProjectName] [FeatureName] "[type Name]" "[type Name]" ...
+
+Example: ./add-feature-template.sh CarShop Car "string Brand" "string Model" "int Year"
+
+For more information: https://gitlab.com/Syndamia/it-kariera-exam-template#add-feature-template
+EOF
+ exit
+fi
+
if [ -z "$1" ] || [ -z "$2" ]; then
echo "No name supplied!"
exit
diff --git a/tools/delete-feature-template.sh b/tools/delete-feature-template.sh
index 47218a0..29484dd 100755
--- a/tools/delete-feature-template.sh
+++ b/tools/delete-feature-template.sh
@@ -1,5 +1,16 @@
#!/bin/bash
+if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-?" ]; then
+ cat <<EOF
+./delete-feature-template.sh [ProjectName] [FeatureName]
+
+Example: ./delete-feature-template.sh CarShop Car
+
+For more information: https://gitlab.com/Syndamia/it-kariera-exam-template#delete-feature-template
+EOF
+ exit
+fi
+
if [ -z "$1" ] || [ -z "$2" ]; then
echo "No name supplied!"
exit
diff --git a/tools/rename-namespaces.sh b/tools/rename-namespaces.sh
index 543cbe8..b500311 100755
--- a/tools/rename-namespaces.sh
+++ b/tools/rename-namespaces.sh
@@ -1,5 +1,21 @@
#!/bin/bash
+if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-?" ]; then
+ cat <<EOF
+./rename-namespaces.sh <CurrentName|-r> [FeatureName]
+
+CurrentName An optional paramter, specifies the current start name of all namespaces.
+ Default value: ExamTemplate
+-r An optional paramter, removes the specified start name of all namespaces.
+
+Example: ./rename-namespaces.sh MyShop CarShop
+Example: ./rename-namespaces.sh -r CarShop
+
+For more information: https://gitlab.com/Syndamia/it-kariera-exam-template#rename-namespaces
+EOF
+ exit
+fi
+
if [ -z "$1" ]; then
echo "No name supplied!"
exit
diff --git a/tools/rename-project.sh b/tools/rename-project.sh
index 876432f..b0d6d0b 100755
--- a/tools/rename-project.sh
+++ b/tools/rename-project.sh
@@ -1,5 +1,19 @@
#!/bin/bash
+if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-?" ]; then
+ cat <<EOF
+./add-feature-template.sh <CurrentName> [NewName]
+
+CurrentName Optional parameter, specifies the current name of the project
+ Default value: ExamTemplate
+Example: ./rename-project.sh CarShop
+Example: ./rename-project.sh CarShop BookShop
+
+For more information: https://gitlab.com/Syndamia/it-kariera-exam-template#rename-project
+EOF
+ exit
+fi
+
if [ -z "$1" ]; then
echo "No name supplied!"
exit