From 348344dce8593c8243798ad7197e7c0fbd5b98b6 Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Sun, 27 Aug 2017 12:25:55 -0400 Subject: [PATCH] go-script-bash v1.6.0 --- README.md | 4 ++-- RELEASE.md | 33 +++++++++++---------------------- go-core.bash | 2 +- go-template | 2 +- 4 files changed, 15 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 03384c6..b76f03b 100644 --- a/README.md +++ b/README.md @@ -261,8 +261,8 @@ page][go-rel]. The archives for the current release are: [go-rel]: https://github.com/mbland/go-script-bash/releases -- https://github.com/mbland/go-script-bash/archive/v1.5.0.tar.gz -- https://github.com/mbland/go-script-bash/archive/v1.5.0.zip +- https://github.com/mbland/go-script-bash/archive/v1.6.0.tar.gz +- https://github.com/mbland/go-script-bash/archive/v1.6.0.zip You can also add this repository to your project as a [Git submodule][git-sub]: diff --git a/RELEASE.md b/RELEASE.md index 6fbdb21..2fdc397 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,8 +1,6 @@ -# go-script-bash v1.5.0 +# go-script-bash v1.6.0 -This is a minor update to add the `lib/prompt` and `lib/existence` modules that import functionality from the first draft of the [mbland/certbot-webroot-setup][cws] project. - -[cws]: https://github.com/mbland/certbot-webroot-setup +This is a minor update to add the capability to `go-template` to download a release tarball from GitHub rather than using `git clone` to add the go-script-bash framework to a project working directory. ## The `./go` script: a unified development environment interface @@ -27,34 +25,25 @@ This software is made available as [Open Source software][oss-def] under the [IS ## What's new in this release -All of the issues and pull requests for this release are visible in the [v1.5.0 milestone][]. - -[v1.5.0 milestone]: https://github.com/mbland/go-script-bash/milestone/3?closed=1 - -### `lib/prompt` module +All of the issues and pull requests for this release are visible in the [v1.6.0 milestone][]. -The new `lib/prompt` module contains several new user input prompt functions. Also, `@go.select_option` has been moved from `go-core.bash` to the `lib/prompt` module. The new `./go demo-core prompt` command demonstrates most of the new user prompt behavior. +[v1.6.0 milestone]: https://github.com/mbland/go-script-bash/milestone/4?closed=1 -### `lib/existence` module +### Download a go-script-bash release tarball from GitHub in `go-template` -The new `lib/existence` module contains convenience functions for checking whether a file or command exists and is accessible on the system, and provides standard error reporting if not. +Thanks to [Juan Saavedra][elpaquete], `go-template` now has the capability to download and unpack a release tarbal from GitHub in order to add the go-script-bash framework to a project's working directory, rather than relying on `git clone`. Now `git clone` will be used as a backup in case the system doesn't have the tools to download and unpack the tarball, or the operation fails for some reason. -### `@go.trim` added to `lib/strings` - -`@go.trim` trims leading and trailing whitespace from strings, and supports the parsing of user input data in functions from the `lib/prompt` module. +[elpaquete]: https://github.com/elpaquete ### Bug fixes -Just one this time: `./go new --test` now outputs `load environment` correctly for top-level tests within `_GO_TEST_DIR` ([#171][], [#172][]). - -[#171]: https://github.com/mbland/go-script-bash/pull/171 -[#172]: https://github.com/mbland/go-script-bash/issues/172 +None in this release. -## Changes since v1.4.0 +## Changes since v1.5.0 You can see the details of every change by issuing one or more of the following commands after cloning: https://github.com/mbland/go-script-bash
-$ ./go changes v1.4.0 v1.5.0
-$ gitk v1.4.0..HEAD
+$ ./go changes v1.5.0 v1.6.0
+$ gitk v1.5.0..HEAD
 
diff --git a/go-core.bash b/go-core.bash index 124ffcb..b744832 100755 --- a/go-core.bash +++ b/go-core.bash @@ -40,7 +40,7 @@ fi # This and other variables are exported, so that command scripts written in # languages other than Bash (and hence run in new processes) can access them. # See `./go vars` and `./go help vars`. -declare -r -x _GO_CORE_VERSION='v1.5.0' +declare -r -x _GO_CORE_VERSION='v1.6.0' # The URL of the framework's original source repository declare -r -x _GO_CORE_URL='https://github.com/mbland/go-script-bash' diff --git a/go-template b/go-template index 432fe99..e043f42 100755 --- a/go-template +++ b/go-template @@ -35,7 +35,7 @@ export _GO_STANDALONE= declare GO_SCRIPTS_DIR="${GO_SCRIPTS_DIR:-scripts}" # The `GO_SCRIPT_BASH_REPO_URL` tag or branch you wish to use -declare GO_SCRIPT_BASH_VERSION="${GO_SCRIPT_BASH_VERSION:-v1.5.0}" +declare GO_SCRIPT_BASH_VERSION="${GO_SCRIPT_BASH_VERSION:-v1.6.0}" # The go-script-bash installation directory within your project declare GO_SCRIPT_BASH_CORE_DIR="${GO_SCRIPT_BASH_CORE_DIR:-${0%/*}/$GO_SCRIPTS_DIR/go-script-bash}"