Commit Graph

64 Commits

Author SHA1 Message Date
75663b3108 Fix -c starting step 1 with -qq if no configuration is available 2021-04-07 10:02:19 +02:00
d2bf4d8677 New function to exit sequence if another instance of it still runs 2021-04-01 14:05:02 +02:00
260daa009c Output error if step_config fails
Small enhancement of the template
2021-03-27 05:33:38 +00:00
65f8ab8dc8 Small template adjustement
New variable SCRIPT_FILE holding script file name
2021-03-24 14:46:53 +01:00
bb7d187d64 Small template extension for APT option -y 2021-03-21 17:22:57 +01:00
8e63bbe7df Sequencer new option to open sequence config file when initialised using initSeqConfig
Sequences with exit in step_config, changed to return to support opening config file on first run
2021-03-19 01:32:59 +01:00
41fd3d3861 Adding colored output support (outColor)
Extended seq template
2021-02-19 14:43:41 +01:00
6dd7c0d00c fix typo 2021-02-02 22:57:28 +01:00
ad18a2b8d5 Fix always setting SEQ_CONFIG_HOME 2021-02-01 22:24:49 +01:00
e0daa360e9 New global variable SEQUENCER_ARGS containing sequencer options to pass down to other seqs eventually 2021-02-01 22:22:15 +01:00
3c132ed4e2 Adding variables CONTEXT_HELP and SEQ_PROFILE_NAME to the API documentation 2021-01-31 22:18:57 +01:00
33775ffb1d Refactored template creation
Fix obsolete escapes in sequencer help output
2021-01-31 19:48:56 +01:00
4c7eae13c4 New function "configuration profiles" for sequencer (initSeqConfig)
Changed usage definition to "cat" instead of echo
2021-01-31 17:33:03 +01:00
370a042c8b Major: Doesn't stop with option -q(q) if now step is given.
Major: Seqs config files are created with permissions 600

Minor: Further reduction of messages when using -qq
2021-01-31 11:20:18 +01:00
d52fb92920 Clustering continous step numbers for better readability 2021-01-20 13:29:57 +01:00
9f262616fb Fix failing step name resolution on singe step execution (-s) 2021-01-12 22:30:51 +01:00
ca169beec6 Added to API documentation 2020-12-27 00:02:33 +01:00
ae83eedec4 Make helper variables local to prefent side effects 2020-12-26 18:09:51 +01:00
0a92b49cc7 Fix continous execution ignoring return values and thous jumping number boundaries 2020-12-23 23:37:33 +01:00
5aba72ee49 Sequencer returns returnvalue of last executed step 2020-09-30 21:46:50 +02:00
7a61dcd718 Refining initSeqConfig function
Option to choose if empty config should be created (Is not by default)
2020-06-04 15:19:17 +02:00
5f26548299 Clarified user output about sourcing config files
Small fix for seq template
2020-03-13 17:43:24 +01:00
f3cd19e22e Fix false logic for config detection in template 2020-02-20 10:56:29 +01:00
cc9fd79693 Don't ask for template creation if sequencer.sh was called directly with -h 2020-01-24 19:45:11 +01:00
60f6d04c3b Fix missing error message for invalid step doing a selection of steps 2020-01-13 17:38:31 +01:00
a657473871 Fix running step_config if first step is invalid
sequencer.sh now returns with last result
2020-01-13 17:18:11 +01:00
0ec36247f7 Use available configuration file if exists in the same directory as the template 2020-01-13 14:12:04 +01:00
4b4df3132a New api function to manage seq configurations (create/use)
Seq template is generated by sequencer.sh; deleting static template
2020-01-13 11:48:15 +01:00
2e6984aac8 New option -qq to suppress regular output
Usefull when step are called from another seq
2020-01-05 15:04:20 +01:00
d369913e9f step() function did not provide argument pass-through 2019-12-31 00:13:54 +01:00
ef572f9d7e Bump sequencer revision to 9
New API function echoinfo

New option -s to execute only one step

Step argruments are also passed to step info function
2019-12-23 23:13:11 +01:00
91f9f8a8da endCheckEmpty uses full DESCRIPTION as error message, if available 2019-12-13 23:47:02 +01:00
d182f5e0c6 Small output update 2019-12-13 12:18:51 +01:00
9a303b634f Extended addConf with file support for SOURCE 2019-12-12 23:49:16 +01:00
d6aba7d06f Bump sequencer.sh version to 8.0.0
Support for function step_config which is called once before any step

Output alias on stopping at a step if available
2019-12-12 10:57:28 +01:00
68a16b2fdd Fix: step arguments not passed on correctly if strings with spaces were involved 2019-12-11 23:16:35 +01:00
07fcd28545 Bump sequencer version to 7.1.0
Update verbose and dry-run handling. Using bash ":" build-in function

Small helpapi update
2019-12-09 23:37:26 +01:00
f514b73322 New option -o for endReturn to directly evaluate an error code
Addition to api help
2019-12-09 14:45:06 +01:00
3d1097bb5d New function step to execute other steps also by alias
Possibilty to skip a step, if run without quiet option

WIP build-in function documentation
2019-12-08 21:38:42 +00:00
be59c27224 Another use of echoerr 2019-11-23 12:54:16 +01:00
d89dd8e6ab Make use of echoerr to send error messages to stderr 2019-11-22 21:08:05 +01:00
c7de26455b new function getReturn which return latest value previously saved by saveReturn
function saveReturn returns with the same errno it saved

refactor documentation replace installation with sequence and aborted with stopped

New starting output with absolute path to seq
2019-11-21 23:30:08 +01:00
f5193f46ee Bump sequencer revision to 6
Adding optional message for endReturnto replace predefined one
2019-11-20 23:08:44 +01:00
f5c5120fff Don't show dry-run warning when option quiet is selected 2019-11-20 16:38:23 +00:00
e5678c9692 Fix crash when invalid alias strings contain '.' are processed
Help and commandline informational output
2019-11-20 15:22:02 +00:00
e8b475d9f7 Add execution rights to sequencer.sh 2019-11-08 09:41:32 +01:00
49f009a387 Add timestamp to addConf backup 2019-11-04 09:46:26 +00:00
9a408fa1d4 Update and extend template creation
- Example usage of "exe" and "exep"
- step_1 is not mandatory any more
2019-10-30 13:22:56 +01:00
69740bf6ee Fix using $1 to check if no step was given, although it was shifted
Dry run no longer also assumes -q (quiet) option
2019-10-09 23:43:10 +02:00
519bc7aa92 Do not required step_1 to exist to output step help 2019-10-09 21:37:10 +02:00