Skip to content

Commit

Permalink
Add option to disable summary on exit and increase minor version
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchs-fabian committed Nov 23, 2024
1 parent efb7127 commit 5ed6909
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ Usage: (sudo) domposy
--notifier [notifier] 'simbashlog' notifier (https://github.com/fuchs-fabian/simbashlog-notifiers)
Important: The notifier must be correctly installed
Default: none
--disable-summary-on-exit Disables the summary on exit
```

### Example
Expand Down
10 changes: 9 additions & 1 deletion src/domposy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# ░░ ░░
# ░░░░░░░░░░░░░░░░░░░░░▓▓▓░░░░░░░░░░░░░░░░░░░░░░

declare -rx CONST_DOMPOSY_VERSION="2.1.0"
declare -rx CONST_DOMPOSY_VERSION="2.2.0"
declare -rx CONST_DOMPOSY_NAME="domposy"

# ░░░░░░░░░░░░░░░░░░░░░▓▓▓░░░░░░░░░░░░░░░░░░░░░░
Expand Down Expand Up @@ -378,6 +378,8 @@ function _process_arguments {
echo " --notifier [notifier] '$CONST_SIMBASHLOG_NAME' notifier ($CONST_SIMBASHLOG_NOTIFIERS_GITHUB_LINK)"
echo " Important: The notifier must be correctly installed"
echo " Default: none"
echo
echo " --disable-summary-on-exit Disables the summary on exit"

# shellcheck disable=SC2034
ENABLE_SUMMARY_ON_EXIT=false
Expand Down Expand Up @@ -498,6 +500,12 @@ function _process_arguments {
SIMBASHLOG_NOTIFIER="$1"
log_debug_var "_process_arguments" "SIMBASHLOG_NOTIFIER"
;;
--disable-summary-on-exit)
log_debug "'$1' selected"

# shellcheck disable=SC2034
ENABLE_SUMMARY_ON_EXIT=false
;;
*)
# shellcheck disable=SC2034
ENABLE_SUMMARY_ON_EXIT=false
Expand Down

0 comments on commit 5ed6909

Please sign in to comment.