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
Kevin van Zonneveld
1f13dfae78
Upgrade Lanyon to v0.0.25
2016-12-01 14:55:41 +01:00
Manuel Streuhofer
9b739b4cf0
Fix some code caught by shellcheck ( #68 )
2016-12-01 14:40:56 +01:00
Kevin van Zonneveld
bdb501bec0
Upgrade Lanyon to v0.0.24
2016-12-01 14:27:37 +01:00
Kevin van Zonneveld
64dc269217
Upgrade Lanyon to v0.0.23
2016-12-01 14:12:27 +01:00
Kevin van Zonneveld
d556893774
Upgrade Lanyon to v0.0.22
2016-12-01 14:01:53 +01:00
Kevin van Zonneveld
93c9c25c88
Upgrade Lanyon to v0.0.21
2016-12-01 13:41:41 +01:00
Kevin van Zonneveld
f41c05d971
yarn still messes up nested bins: https://github.com/yarnpkg/yarn/issues/760
2016-12-01 13:34:12 +01:00
Kevin van Zonneveld
16d699b67b
Upgrade Lanyon to v0.0.20
2016-12-01 13:10:10 +01:00
Kevin van Zonneveld
36b9ce280b
With yarn cache, do not cache node_modules on Travis
2016-12-01 12:51:52 +01:00
Kevin van Zonneveld
a178a95c26
Utilize yarn on Travis
2016-12-01 12:49:06 +01:00
Kevin van Zonneveld
fc766c7437
Upgrade Lanyon to v0.0.19
2016-12-01 12:46:45 +01:00
Kevin van Zonneveld
96220cea12
Add workaround for https://github.com/travis-ci/travis-ci/issues/5092
2016-12-01 11:36:40 +01:00
Kevin van Zonneveld
ddd89a787a
Add Travis caching
2016-12-01 10:47:57 +01:00
Kevin van Zonneveld
b4d16f5317
Add Travis caching
2016-12-01 10:47:17 +01:00
Kevin van Zonneveld
2295da9233
Postinstall isn't automatically run(?)
2016-11-30 20:56:57 +01:00
Kevin van Zonneveld
0bed7a3782
node project is needed for lanyon
2016-11-30 20:26:24 +01:00
Kevin van Zonneveld
5b5d5608b4
node project is needed for lanyon
2016-11-30 20:10:34 +01:00
Kevin van Zonneveld
c0a2a56cee
Upgrade Lanyon to v0.0.15
2016-11-30 20:09:01 +01:00
Kevin van Zonneveld
3c114b9d1d
Fix package.json
2016-11-30 20:07:55 +01:00
Kevin van Zonneveld
e61028f679
Lanyon should be a devDep
2016-11-30 19:59:21 +01:00
Kevin van Zonneveld
049002a1cc
Lanyon deploys
2016-11-30 19:35:44 +01:00
Kevin van Zonneveld
a7665cbf4f
Upgrade Lanyon to v0.0.13
2016-11-30 16:22:25 +01:00
Kevin van Zonneveld
74a701a66e
Lanyon ( #67 )
...
* WIP
* Working locally
* Upgrade lanyon
* Upgrade Lanyon to v0.0.12
* Tweaks
* Simplify example scripts
2016-11-30 14:57:40 +01:00
Manuel Streuhofer
57ebf1569d
Updated README and FAQ ( #66 )
...
* updated TOC
* fixed typos
* link to bash3boilerplate.sh/main.sh instead of blob/master/main.sh
* updated links from e.g. blob/master/main.sh#L13 to
blob/v2.1.0/main.sh#L13
2016-11-29 10:36:49 +01:00
Izaak Beekman
e7a0b2f412
Merge pull request #63 from mstreuhofer/usage-defaults
...
Allow for multiline opt description in __usage. Fixes #7
2016-11-18 09:45:07 -05:00
Kevin van Zonneveld
064f30502f
Build plz : )
2016-11-14 12:16:06 +01:00
Manuel Streuhofer
539443b3ca
Allow for multiline opt description in __usage. Fixes #7
2016-11-11 20:13:01 +01:00
Kevin van Zonneveld
0181129aff
Add all logos
2016-11-11 11:22:46 +01:00
roooshee
87530e756e
Adding b3bp logo ( #64 )
2016-11-11 09:51:43 +01:00
Manuel Streuhofer
dfd799b4e5
b3bp sourced mode ( #61 )
...
If main.sh is being sourced instead of being executed it respects the
variables __usage and __helptext being defined beforehand. Its behaviour
will depend on the sourcing script. If __usage is defined but empty no
argument parsing is done. If __helptext is defined but empty no helptext
will be shown.
Logging support still exists as it did before. The environment variables
LOG_LEVEL and NO_COLOR are supported just as they were before.
2016-11-09 10:03:00 +01:00
Manuel Streuhofer
d2195eee3c
mention the used license in each script header ( #60 )
...
turns out that the README.md explains that "... licensed under MIT ...
the LICENSE does not have to be bundled as long as ..." but the scripts
themselfs don't mention any license.
fixed that by adding a one line mention of the used license and the two
lines explaining that the header comments have to stay intact.
2016-11-08 21:15:46 +01:00
Kevin van Zonneveld
9928ef16d7
Update version
2016-11-08 13:07:29 +01:00
Kevin van Zonneveld
8f06b1a927
Release 2.1.0
2016-11-08 13:07:28 +01:00
Kevin van Zonneveld
e6275924b5
Update CHANGELOG.md
2016-11-08 13:07:20 +01:00