diff options
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rwxr-xr-x | kiss | 7 | ||||
-rw-r--r-- | man/kiss.1 | 7 |
3 files changed, 19 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb825e..c29cdec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ this project _somewhat_ adheres to [Semantic Versioning]. [Keep a Changelog]: https://keepachangelog.com/en/1.0.0/ [Semantic Versioning]: https://semver.org/spec/v2.0.0.html +1.20.0 - 2020-05-07 +------------------- + +### Added +- `KISS_NOPROMPT` can be specified in order to skip prompts + 1.19.1 - 2020-05-07 ------------------- @@ -39,6 +39,11 @@ contains() { } prompt() { + # If a KISS_NOPROMPT variable is set, continue. + # This can be useful for installation scripts and + # bootstrapping. + [ "$KISS_NOPROMPT" ] && return 0 + # Ask the user for some input. [ "$1" ] && log "$1" log "Continue?: Press Enter to continue or Ctrl+C to abort here" @@ -1477,7 +1482,7 @@ args() { l|list) pkg_list "$@" ;; u|update) pkg_updates ;; s|search) for pkg do pkg_find "$pkg" all; done ;; - v|version) log kiss 1.19.1 ;; + v|version) log kiss 1.20.0 ;; h|help|-h|--help|'') exec 2>&1 @@ -172,6 +172,13 @@ export KISS_COLOUR=1 # Enables globally .IP export KISS_COLOUR=0 # Disables globally .PP +.SS DISABLING PROMPTS +User can disable prompts by setting a \fIKISS_NOPROMPT\fR environment value. This +can be useful for scripting purposes. + +.IP +KISS_NOPROMPT=1 kiss b pkg1 pkg2 +.PP .SH ALTERNATIVES SYSTEM When a package with conflicts is installed the conflicting files will be added as "choices" to the alternatives system. |