Skip to content

Commit 6814878

Browse files
committed
go-script-bash v1.1.0
1 parent 9411a89 commit 6814878

File tree

3 files changed

+305
-4
lines changed

3 files changed

+305
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ scripts can be in any other interpreted language.__
195195
First you'll need a copy of this framework available in your project sources.
196196
Archives are available at:
197197

198-
- https://github.com/mbland/go-script-bash/archive/v1.0.0.tar.gz
199-
- https://github.com/mbland/go-script-bash/archive/v1.0.0.zip
198+
- https://github.com/mbland/go-script-bash/archive/v1.1.0.tar.gz
199+
- https://github.com/mbland/go-script-bash/archive/v1.1.0.zip
200200

201201
You can also add this repository to your project as a [`Git
202202
submodule`](https://git-scm.com/book/en/v2/Git-Tools-Submodules):

RELEASE.md

Lines changed: 302 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# go-script-bash v1.0.0
1+
# go-script-bash v1.1.0
2+
3+
This release adds some major new features, two new builtin commands, and multiple bug fixes and internal improvements.
24

35
## The `./go` script: a unified development environment interface
46

@@ -11,3 +13,302 @@ The `./go` script idea came from Pete Hodgson's blog posts [In Praise of the ./g
1113
**Note:** The `./go` script concept is completely unrelated to the [Go programming language](https://golang.org), though the Go language's `go` command encapsulates many common project functions in a similar fashion.
1214

1315
This software is made available as [Open Source software](https://opensource.org/osd-annotated) under the [ISC License](https://www.isc.org/downloads/software-support-policy/isc-license/). If you'd care to contribute to this project, be it code fixes, documentation updates, or new features, please read the `CONTRIBUTING.md` file.
16+
17+
## What's new in this release
18+
19+
### Modules
20+
21+
You can import optional Bash library code from the core framework, third-party plugins, or your own project's scripts directory by sourcing the `_GO_USE_MODULES` script. See the **Modules** section of the README or run `./go help modules` and `./go modules --help` for more information.
22+
23+
### Logging
24+
25+
The core library `log` module provides functions for standard logging facilities. For more information, see the **Logging** section from the README and run `./go modules --help log`.
26+
27+
### Bats test assertions and helpers
28+
29+
The assertions and helpers from the test suite have been extracted into the `lib/bats/assertions` and `lib/bats/helpers` libraries. See the **Bats test assertions and helpers** section from the README and read the comments from each file for more information.
30+
31+
### `kcov-ubuntu` module for test coverage on Linux
32+
33+
The `kcov-ubuntu` module provides the `run_kcov` function that uses [kcov](https://github.com/SimonKagstrom/kcov) to collect test coverage on Ubuntu Linux. See the **`kcov-ubuntu` module for test coverage on Linux** section of the README and run `./go modules --help kcov-ubuntu` for more information.
34+
35+
### Exported `_GO_*` variables and the `vars` builtin command
36+
37+
A number of global variables starting with the prefix `_GO_*` are exported as environment variables and are available to command scripts in all languages. See the **Command script API** section from the README and run `./go help vars` for more information.
38+
39+
## Changes since v1.0.0
40+
41+
<pre>
42+
9411a89 Mike Bland <[email protected]>
43+
Merge pull request #23 from mbland/version
44+
45+
e8ef35b Mike Bland <[email protected]>
46+
core: Introduce _GO_CORE_VERSION
47+
48+
17a69d2 Mike Bland <[email protected]>
49+
Add documentation improvements for v1.1.0 release
50+
51+
ecd2d81 Mike Bland <[email protected]>
52+
use: Unset correct variable
53+
54+
006c38b Mike Bland <[email protected]>
55+
Merge pull request #22 from mbland/remove-stale-files
56+
57+
e17c181 Mike Bland <[email protected]>
58+
Remove old test `./go` scripts
59+
60+
f9675e5 Mike Bland <[email protected]>
61+
Merge pull request #21 from mbland/plugins
62+
63+
33c54b6 Mike Bland <[email protected]>
64+
plugins: Revert changes from #20
65+
66+
ce20155 Mike Bland <[email protected]>
67+
Merge pull request #20 from mbland/vars
68+
69+
6b376eb Mike Bland <[email protected]>
70+
vars: Make test array quotifying more robust
71+
72+
241d2c7 Mike Bland <[email protected]>
73+
Revamp `_GO_*` var exports, add `vars` builtin
74+
75+
7c1123b Mike Bland <[email protected]>
76+
Move all _GO_* vars to core and document them
77+
78+
17beb1e Mike Bland <[email protected]>
79+
Merge pull request #19 from mbland/assert-lines-equal
80+
81+
70d546f Mike Bland <[email protected]>
82+
assertions: Add assert_lines_equal
83+
84+
32d47fc Mike Bland <[email protected]>
85+
changes: Don't add `^` to end ref
86+
87+
580f08d Mike Bland <[email protected]>
88+
core: Tweak COLUMNS test slightly
89+
90+
47b6e63 Mike Bland <[email protected]>
91+
Merge pull request #18 from mbland/columns
92+
93+
5292839 Mike Bland <[email protected]>
94+
core: Fix test for OS X on Travis without /dev/tty
95+
96+
c7ee892 Mike Bland <[email protected]>
97+
core: Reproduce and fix `tput cols` error from #17
98+
99+
664a51f Mike Bland <[email protected]>
100+
Merge pull request #17 from mbland/columns
101+
102+
5bdbd2c Mike Bland <[email protected]>
103+
core: Update how COLUMNS is set
104+
105+
5fc49a5 Mike Bland <[email protected]>
106+
log: Skip setup-project test case on MSYS2
107+
108+
0e91281 Mike Bland <[email protected]>
109+
Merge pull request #16 from mbland/log-setup
110+
111+
ecb6b83 Mike Bland <[email protected]>
112+
log: Fix @go.critical_section_end return bug
113+
114+
b7f7699 Mike Bland <[email protected]>
115+
log: Add @go.setup_project function
116+
117+
ed05f2b Mike Bland <[email protected]>
118+
Merge pull request #15 from mbland/log-command
119+
120+
da20203 Mike Bland <[email protected]>
121+
log: Add log_command tests for @go command cases
122+
123+
db79ba1 Mike Bland <[email protected]>
124+
log: Add @go.log_command, critical section flag
125+
126+
43fae60 Mike Bland <[email protected]>
127+
Merge pull request #14 from mbland/add-or-update-log-level
128+
129+
949fb32 Mike Bland <[email protected]>
130+
log: Implement @go.add_or_update_log_level
131+
132+
dd712c6 Mike Bland <[email protected]>
133+
Merge pull request #13 from mbland/log
134+
135+
0a7bc5e Mike Bland <[email protected]>
136+
lib/log: Add logging module
137+
138+
31a1d30 Mike Bland <[email protected]>
139+
complete: Fix typo in internal library comment
140+
141+
3cc22b0 Mike Bland <[email protected]>
142+
Merge pull request #12 from mbland/assertions
143+
144+
0d94845 Mike Bland <[email protected]>
145+
Revert previous two commits
146+
147+
f4a0f85 Mike Bland <[email protected]>
148+
assertions: Reset return trap when trap exits
149+
150+
7ca3d05 Mike Bland <[email protected]>
151+
assertions: Introduce bats_assertion_return_trap
152+
153+
40d6218 Mike Bland <[email protected]>
154+
assertions: Make public return_from_bats_assertion
155+
156+
87bb07c Mike Bland <[email protected]>
157+
assertions: Reproduce and fix latent functrace bug
158+
159+
52bc541 Mike Bland <[email protected]>
160+
Merge pull request #11 from mbland/complete
161+
162+
112e046 Mike Bland <[email protected]>
163+
env/bash: Put single quotes around unset argument
164+
165+
e7f02fe Mike Bland <[email protected]>
166+
complete: Eliminate compgen from internal library
167+
168+
096f0f3 Mike Bland <[email protected]>
169+
bats/assertions: Change double quotes to single
170+
171+
d8e4231 Mike Bland <[email protected]>
172+
complete: Replace most compgen calls with echo
173+
174+
4d61457 Mike Bland <[email protected]>
175+
complete: Switch all tests to use ./go complete
176+
177+
54e8e9a Mike Bland <[email protected]>
178+
Merge pull request #10 from mbland/tput-fix-test-docs
179+
180+
e779deb Mike Bland <[email protected]>
181+
test: Expand comments, refactor slightly
182+
183+
b9792bf Mike Bland <[email protected]>
184+
kcov-ubuntu: Update run_kcov function comment
185+
186+
4c66893 Mike Bland <[email protected]>
187+
core: Undo tput error redirect
188+
189+
676dd18 Mike Bland <[email protected]>
190+
Merge pull request #9 from mbland/bats-libs
191+
192+
69fb63b Mike Bland <[email protected]>
193+
bats/assertions: Reorder functions, add docs
194+
195+
d692bb9 Mike Bland <[email protected]>
196+
bats/assertions: Add optional fail() reason, docs
197+
198+
ac8ed3f Mike Bland <[email protected]>
199+
tests: Extract public bats/assertions module
200+
201+
2707493 Mike Bland <[email protected]>
202+
tests: Consolidate environment.bash
203+
204+
c77932e Mike Bland <[email protected]>
205+
kcov: Convert to public kcov-ubuntu module
206+
207+
1a47920 Mike Bland <[email protected]>
208+
cmd-desc: Remove create_test_command_script calls
209+
210+
3deee25 Mike Bland <[email protected]>
211+
run-cmd: Update _GO_* var tests to run subcommands
212+
213+
4168b58 Mike Bland <[email protected]>
214+
Extract public bats/helpers module
215+
216+
87ce40a Mike Bland <[email protected]>
217+
Merge pull request #8 from mbland/cmd-name-argv
218+
219+
202b17c Mike Bland <[email protected]>
220+
core: Export _GO_CMD_{NAME,ARGV}, add Bash test
221+
222+
d674191 Mike Bland <[email protected]>
223+
Merge pull request #7 from mbland/cmd-desc
224+
225+
9bd1524 Mike Bland <[email protected]>
226+
core: Default to 80 columns on all tput errors
227+
228+
47d9476 Mike Bland <[email protected]>
229+
TEMP: Print value of $TERM to debug Travis issue
230+
231+
271c726 Mike Bland <[email protected]>
232+
core: Check $TERM before setting columns with tput
233+
234+
c1ba9c8 Mike Bland <[email protected]>
235+
cmd_desc: Show full command names in descriptions
236+
237+
c2098c4 Mike Bland <[email protected]>
238+
Merge pull request #6 from mbland/core-updates
239+
240+
2777ca8 Mike Bland <[email protected]>
241+
core: Export variables for non-Bash script access
242+
243+
1158bc7 Mike Bland <[email protected]>
244+
core: Escape % when only one @go.printf argument
245+
246+
995daf0 Mike Bland <[email protected]>
247+
script_helper: Default to bash, allow other langs
248+
249+
6444f51 Mike Bland <[email protected]>
250+
Merge pull request #5 from mbland/modules-builtin
251+
252+
0a4886a Mike Bland <[email protected]>
253+
README: ./go modules help => ./go modules --help
254+
255+
78c447a Mike Bland <[email protected]>
256+
test, modules: Quote $_GO_USE_MODULES, add docs
257+
258+
9bb7a45 Mike Bland <[email protected]>
259+
Add modules builtin command
260+
261+
766a354 Mike Bland <[email protected]>
262+
command_descriptions: Trim trailing whitespace
263+
264+
e764723 Mike Bland <[email protected]>
265+
command_descriptions: Return error if read fails
266+
267+
7cd5dd5 Mike Bland <[email protected]>
268+
kcov: Add note explaining 2>/dev/null redirection
269+
270+
80b7abe Mike Bland <[email protected]>
271+
test: Use time builtin
272+
273+
4c8f931 Mike Bland <[email protected]>
274+
complete: Add public module, completion removal
275+
276+
97fd0df Mike Bland <[email protected]>
277+
test/script_helper: Add TEST_GO_PLUGINS_DIR
278+
279+
2d88f57 Mike Bland <[email protected]>
280+
format: Add public module, pad and zip functions
281+
282+
8c23dcd Mike Bland <[email protected]>
283+
Merge pull request #3 from mbland/lightning-talk
284+
285+
4f1e6c6 Mike Bland <[email protected]>
286+
README: Update location of lib/internal/env
287+
288+
515730d Mike Bland <[email protected]>
289+
README: Add link to Surge 2016 lightning talk
290+
291+
2cbfdda Mike Bland <[email protected]>
292+
Merge pull request #2 from mbland/use-modules
293+
294+
a5973af Mike Bland <[email protected]>
295+
use: Fix test for bash < 4.4
296+
297+
55d09f9 Mike Bland <[email protected]>
298+
test: Replace direct source with _GO_USE_MODULES
299+
300+
ed78d9f Mike Bland <[email protected]>
301+
core: Add _GO_USE_MODULES for optional modules
302+
303+
2d5cb96 Mike Bland <[email protected]>
304+
Merge pull request #1 from mbland/refactor
305+
306+
345dd55 Mike Bland <[email protected]>
307+
Lowercase __go_orig_dir, unset temp globals
308+
309+
e6c29fd Mike Bland <[email protected]>
310+
Move all lib/ files to lib/internal/
311+
312+
1634d85 Mike Bland <[email protected]>
313+
core: Refactor, update comments
314+
</pre>

go-core.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fi
3939
# This and other variables are exported, so that command scripts written in
4040
# languages other than Bash (and hence run in new processes) can access them.
4141
# See `./go vars` and `./go help vars`.
42-
declare -r -x _GO_CORE_VERSION='v1.0.0'
42+
declare -r -x _GO_CORE_VERSION='v1.1.0'
4343

4444
# The URL of the framework's original source repository
4545
declare -r -x _GO_CORE_URL='https://github.com/mbland/go-script-bash'

0 commit comments

Comments
 (0)