Commit Graph

291 Commits

Author SHA1 Message Date
Kevin van Zonneveld
36db2227c7 Update CHANGELOG.md 2017-02-10 15:32:34 +01:00
Izaak Beekman
7cf9ea708d Issue 44 issue 21 issue 47 (#85)
* Fix shifting over `--`: don't throw errexit

 Fixes #21

* Add error trapping (including Ctrl-C) info to FAQ

 Closes #47

* Add backtracing to help localize errors

 - Fixes #44
 - Backtracing is turned on when the debugging `-d` flag is passed,
   otherwise backtracing function defined but signal trap not set.
 - Update main-help fixture due to moving trap

* Untabify main.sh

 Might be a controversial move, but I loath tabs...

* Add checks for tab chars and trailing whitespace

 - Update poor-man's style enforcement script to check for these
   violations
 - Better document style guidlines in README with small tweaks

* Add a magic variable to indicate if being source

 if `__i_am_main_script=1 #true` then `main.sh` called directly
 Fixes #45
2017-02-10 15:03:07 +01:00
Izaak Beekman
7f9419cda0 Merge pull request #83 from kvz/prtemplate
Add Pull Request Template
2017-02-09 16:03:42 -05:00
Manuel Streuhofer
47be547cfa extend acceptance test to check for code style (#81)
* extend acceptance test to check for code style

* cleanup following own style guide
2016-12-21 19:30:28 +01:00
Kevin van Zonneveld
21cafb3c34 Update changelog 2016-12-21 09:59:32 +01:00
Kevin van Zonneveld
ea6bbd058f Update version 2016-12-21 09:52:22 +01:00
Kevin van Zonneveld
884c55c616 Release 2.2.0 2016-12-21 09:52:21 +01:00
Kevin van Zonneveld
31ee23ba9b Add back replace dependency 2016-12-21 09:52:11 +01:00
Kevin van Zonneveld
f44385ced3 Add PULL_REQUEST_TEMPLATE.md 2016-12-21 09:46:15 +01:00
Kevin van Zonneveld
9c3ba0ad77 Add more changelog entries for v2.2.0 2016-12-21 09:40:10 +01:00
Kevin van Zonneveld
00acb0383b Consistent labeling of github meta 2016-12-21 09:32:33 +01:00
Kevin van Zonneveld
0c878b7623 Fix casing and present tense 2016-12-21 09:31:06 +01:00
Manuel Streuhofer
d383e8c098 prepared changelog for release 2.2.0 (#82)
moved entries in changelog from `unreleased` to 2.1.0 (even
though technically it's too late for that since that version was already
released).

added new section for 2.2.0 and added some points on what changed.

bumped version to 2.2.0 in main.sh, example.sh and package.json

Closes #74
2016-12-21 09:29:02 +01:00
Kevin van Zonneveld
ac7fad3e29 Upgrade node dependencies (#78)
* Upgrade node dependencies

* Upgrade Lanyon to v0.0.34

* Upgrade Lanyon to v0.0.37

* Upgrade Lanyon to v0.0.38
2016-12-20 09:23:28 +01:00
Kevin van Zonneveld
d17152253c Fix shellcheck linting 2016-12-16 14:48:58 +01:00
Kevin van Zonneveld
8c35bc9e76 Cleanup superfluous <title> 2016-12-16 14:40:17 +01:00
Kevin van Zonneveld
bbb589ee0a Merge branch 'master' of github.com:kvz/bash3boilerplate 2016-12-16 14:18:22 +01:00
Kevin van Zonneveld
80f6c82c18 Upgrade Lanyon to v0.0.47 2016-12-16 14:16:02 +01:00
Kevin van Zonneveld
191b8118e0 Remove nodemon dependency by letting Lanyon handle web-scanning 2016-12-16 13:58:11 +01:00
Manuel Streuhofer
785e7e9f8b Cleanup all *.sh following shellcheck advice (#80)
* Cleanup all *.sh following shellcheck advice

Closes #79

* do not shellcheck scripts out of our control
2016-12-16 08:18:03 +01:00
Kevin van Zonneveld
044ef6d1c5 Cleanup files no longer needed after Lanyon 2016-12-15 20:07:47 +01:00
Kevin van Zonneveld
42e9ec669d Upgrade Lanyon to v0.0.46 2016-12-15 15:38:53 +01:00
Kevin van Zonneveld
d0bfc96166 Merge branch 'master' of github.com:kvz/bash3boilerplate 2016-12-15 15:12:10 +01:00
Kevin van Zonneveld
a5c3d1c793 Upgrade Lanyon to v0.0.45 2016-12-15 15:12:08 +01:00
Manuel Streuhofer
ce755604da run shellcheck as part of the acceptance test (#77)
* install shellcheck from debian sid repository

* cleanup acceptance shell script

use a uniq temp directory and cleanup
make sure commands we use/need are installed

* shellcheck main.sh

* shellcheck example.sh

* shellcheck test/acceptance.sh

* brace all variables, used [[ instead of [
2016-12-15 12:57:42 +01:00
Kevin van Zonneveld
f763b47d2b Upgrade Lanyon to v0.0.44 2016-12-15 12:22:09 +01:00
Kevin van Zonneveld
15b1092262 Fix Travis error
Unsupported platform for fsevents@1.0.15: wanted
{"os":"darwin","arch":"any"}

Unsupported platform for fsevents@1.0.15: wanted
{"os":"darwin","arch":"any"}

https://travis-ci.org/kvz/bash3boilerplate/jobs/184200578#L757

https://github.com/npm/npm/issues/14042
2016-12-15 12:16:31 +01:00
Kevin van Zonneveld
70f7a2905c Upgrade Lanyon to v0.0.43 2016-12-15 11:41:24 +01:00
Kevin van Zonneveld
44c856d41a Upgrade Lanyon to v0.0.42 2016-12-14 17:22:00 +01:00
Kevin van Zonneveld
971096d73b Upgrade Lanyon to v0.0.41 2016-12-14 16:00:52 +01:00
Kevin van Zonneveld
19dfb9cff4 Utilize Lanyon cachebusting 2016-12-14 15:42:06 +01:00
Kevin van Zonneveld
cfbfd527d5 Upgrade Lanyon to v0.0.40 2016-12-14 15:31:53 +01:00
Manuel Streuhofer
cf85af8c15 brace all variables, used [[ instead of [ (#76)
Closes #33
2016-12-14 09:54:25 +01:00
Izaak Beekman
02cb82c9e6 Merge pull request #73 from mstreuhofer/usage-validation
Added automatic usage validation for required args

Thanks again for another wonderful contribution, @mstreuhofer!
2016-12-09 15:25:57 -05:00
Manuel Streuhofer
9350e0574c added automatic usage validation for required args
If the description of an option contains the single word sentence
'Required.' it is understood as a required argument and automatic
validation will make sure that it is set or end the script by calling
help.

Alternatively, if the argument within the __usage string is {arg}
instead of [arg] it is understood as a required argument and automatic
validation will make sure that it is set or end the script by calling
help (even if 'Required.' is not in the description).

Closes #22
2016-12-09 00:54:52 +01:00
Izaak Beekman
2c91db3faa Merge pull request #72 from mstreuhofer/vade-retro-eval
removed all usage of eval, proper usage of unset

Safer code,  💯 @mstreuhofer
2016-12-08 18:27:09 -05:00
Manuel Streuhofer
1e69fd5e21 removed all usage of eval, proper usage of unset
replaced all `eval` with `printf -v` for security reasons.

the behaviour of unset without -v/-f is actually undefined so make the
intent clear.
2016-12-06 18:06:25 +01:00
Izaak Beekman
68323978d4 Merge pull request #70 from mstreuhofer/color
Fix auto-color-off code

 Thanks to @mstreuhofer for another great contribution 🎊 🙇
2016-12-05 12:37:28 -05:00
Izaak Beekman
0a1b799e77 Merge pull request #71 from mstreuhofer/extcmd
Reduced usage of external sed + egrep

 Thanks to @mstreuhofer for the PR 🎉 💯
2016-12-05 12:33:37 -05:00
Kevin van Zonneveld
c4c0e6ffec Downgrade Lanyon to v0.0.32 2016-12-04 14:41:32 +01:00
Kevin van Zonneveld
d21dd23827 Upgrade Lanyon to v0.0.33 2016-12-04 14:27:58 +01:00
Manuel Streuhofer
b8bdaf371a get rid of awk, sed & egrep usage 2016-12-03 18:52:40 +01:00
Manuel Streuhofer
290c65d4b9 fix auto-color-off code
turn off colors if NO_COLOR is "true" or TERM is not "xterm*" or STDERR
is not connected to a terminal, but ignore TERM and STDERR if NO_COLOR
is set to "false" explicitly.

Fixes #69
2016-12-03 18:52:10 +01:00
Kevin van Zonneveld
b38310e915 Move inject to Lanyon prebuild 2016-12-03 14:02:25 +01:00
Kevin van Zonneveld
b14eec4675 Accept HMR 2016-12-03 13:59:49 +01:00
Kevin van Zonneveld
8ce2ed44c0 Upgrade Lanyon to v0.0.32 2016-12-01 17:56:39 +01:00
Kevin van Zonneveld
96ce0c8206 Upgrade Lanyon to v0.0.26 2016-12-01 16:05:57 +01:00
Kevin van Zonneveld
f0cb04dec7 (hopefully) Fix matrix 2016-12-01 15:56:41 +01:00
Kevin van Zonneveld
046f3ab99a Inject for production 2016-12-01 15:24:57 +01:00
Kevin van Zonneveld
1e9d1548a3 Merge branch 'master' of github.com:kvz/bash3boilerplate 2016-12-01 14:55:43 +01:00