Browse Source

add a [-f|--force] option to remove confirmation on some commands

master
Jérémy Lecour 2 weeks ago
parent
commit
2ccd8c1b8d
3 changed files with 6 additions and 0 deletions
  1. +2
    -0
      CHANGELOG.md
  2. +3
    -0
      bkctld
  3. +1
    -0
      lib/includes

+ 2
- 0
CHANGELOG.md View File

@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

* bkctld: add a [-f|--force] option to remove confirmation on some commands

### Changed

* Better help message composition and formating


+ 3
- 0
bkctld View File

@@ -50,6 +50,9 @@ while :; do
show_version
exit 0
;;
-f|--force)
FORCE=1
;;
*)
# Default case: If no more options then break out of the loop.
break


+ 1
- 0
lib/includes View File

@@ -27,6 +27,7 @@ LOGLEVEL="${LOGLEVEL:-6}"
CRITICAL="${CRITICAL:-48}"
WARNING="${WARNING:-24}"
DUC=$(command -v duc-nox || command -v duc)
FORCE=0

show_version() {
cat <<END


Loading…
Cancel
Save