Clarify wordings (usage of sequencer and sequence (seq))

This commit is contained in:
2019-04-05 13:45:20 +01:00
parent fbaba8f777
commit 09f082a83f
3 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
/stepTemplateExample.sh /seqTemplateExample.sh

0
stepTemplate.sh → seqTemplate.sh Executable file → Normal file
View File

View File

@@ -1,15 +1,15 @@
#!/bin/bash #!/bin/bash
## Sequencer script is doing nothing on its own. It is included by a step definition ## Sequencer script is doing nothing on its own. It is included by a squence script
## script which uses the sequencer to provide sequencial operations with or without ## which uses the sequencer.sh to provide sequencial operations with or without
## user interaction (see stepTemplate.sh) ## user interaction (see seqTemplate.sh)
## Start of generic script part ## Start of generic script part
QUIET=0 QUIET=0
ERNO=0 ERNO=0
MAX_STEP=255 MAX_STEP=255
TEMPLATE_NAME=stepTemplateExample.sh TEMPLATE_NAME=seqTemplateExample.sh
function helpSequencer() { function helpSequencer() {
echo "Usage: ${0##*/} [Options] [Step Number(s)]" echo "Usage: ${0##*/} [Options] [Step Number(s)]"
@@ -170,7 +170,7 @@ function createTemplate() {
return 0 return 0
} }
# Always display sequencer help and, if available, definition script help # Always display sequencer help and, if available, sequence help
function displayHelp() { function displayHelp() {
helpSequencer helpSequencer
@@ -179,8 +179,8 @@ function displayHelp() {
existsFunction step_1 existsFunction step_1
if [ $? -ne 0 ] ; then if [ $? -ne 0 ] ; then
echo -e "\n It seems ${0##*/} was called directly." echo -e "\n It seems ${0##*/} was called directly."
echo -e " Please create a step definition script first.\n" echo -e " Please create a sequence script first.\n"
read -p " Create a step definition template now? y/n(default)? " answer read -p " Create a template now? y/n(default)? " answer
case $answer in case $answer in
[yY]) [yY])
createTemplate createTemplate
@@ -206,7 +206,7 @@ function displayHelp() {
fi fi
printf ' Step %3s : ' $i printf ' Step %3s : ' $i
# Display step help only if function exists # Display step help only if info function exists
existsFunction step_${i}_info existsFunction step_${i}_info
if [ $? -eq 0 ] ; then if [ $? -eq 0 ] ; then
step_${i}_info $i step_${i}_info $i