Skip to content

Commit

Permalink
go-script-bash v1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbland committed Aug 27, 2017
1 parent 2628d11 commit 348344d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]:

Expand Down
33 changes: 11 additions & 22 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

<pre>
$ ./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
</pre>
2 changes: 1 addition & 1 deletion go-core.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion go-template
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 348344d

Please sign in to comment.