Commit Graph

119 Commits

Author SHA1 Message Date
Kevin van Zonneveld
e90ad7421f Merge pull request #3 from zbeekman/longargs
Enable long, GNU style options RE: issue-1
2016-02-16 20:50:54 +01:00
Izaak Beekman
9d2bcdbfb4 Update expected test output
ATTN: @kvz I think I did this correctly, but please look through the
 Travis-CI output nonetheless.
2016-02-16 14:39:48 -05:00
Izaak Beekman
bfb8d40f6c Enable long, GNU style options
- Enable long, GNU style options, fixes #1
 - *CAVEAT* A short option must be preset for every long option;
   but every short option need *not* have a long option
 - No BASH 4 features were added, works with bash 3 and standard sed and
   awk
 - `--` is still respected as the separator between options and arguments
 - Use `awk` only instead of `awk` and `sed` for parsing short options
   from usage string
 - Enable errexit, nounset and pipefail at the top
2016-02-16 14:39:10 -05:00
Kevin van Zonneveld
dd5950975d Fix popd 2016-02-16 20:25:30 +01:00
Kevin van Zonneveld
7a9d116d2c Add dependencies 2016-02-16 18:55:05 +01:00
Kevin van Zonneveld
ae074aac0c Revert Travis container infra. Thx @zbeekman 2016-02-16 18:51:49 +01:00
Kevin van Zonneveld
30cfd19fd9 Add debug test scenario 2016-02-16 15:49:37 +01:00
Kevin van Zonneveld
ecd6a9f04b Easier testing on travis 2016-02-16 15:48:48 +01:00
Kevin van Zonneveld
7a3a07989f Use containers #4 2016-02-16 15:48:32 +01:00
Kevin van Zonneveld
dbedd8f983 Update fixtures 2016-02-16 15:33:57 +01:00
Kevin van Zonneveld
dde3b70596 Also replace tmp dir on Travis 2016-02-16 15:13:40 +01:00
Kevin van Zonneveld
bdc8778b2c Update README.md 2016-02-16 15:01:51 +01:00
Kevin van Zonneveld
63cd89a659 Set up basic acceptance testing #4 2016-02-16 15:01:26 +01:00
Kevin van Zonneveld
68219d21d4 Update README.md 2016-02-15 15:52:05 +01:00
Kevin van Zonneveld
c71b6d14c4 Update README.md 2016-02-15 15:38:27 +01:00
Kevin van Zonneveld
4c256ed58d Update README.md 2016-02-15 12:04:32 +01:00
Kevin van Zonneveld
f2e8ff236a Add clarifications 2015-11-11 16:10:35 +01:00
Kevin van Zonneveld
8147ee81b5 Release 1.1.0 2015-06-29 19:46:16 +02:00
Kevin van Zonneveld
437d384815 Support for ALLOW_REMAINDERS=1 2015-06-29 19:46:08 +02:00
Kevin van Zonneveld
19fcad6851 Make PHONY 2015-06-29 19:45:14 +02:00
Kevin van Zonneveld
df0ad9fe25 Merge pull request #2 from jokajak/patch-1
Update main.sh
2015-02-20 07:40:30 +01:00
Josh
23b68a1bfc Update main.sh
Fix super trivial typo
2015-02-19 19:51:00 -05:00
Kevin van Zonneveld
5b8cf352c8 Use BASH_SOURCE[0] 2014-11-11 12:41:18 +01:00
Kevin van Zonneveld
2f4e089311 Update README.md 2014-11-04 15:23:05 +01:00
Kevin van Zonneveld
4cef357986 Update package.json 2014-11-04 14:55:37 +01:00
Kevin van Zonneveld
964f013e9c Release 1.0.3 2014-11-04 13:19:58 +01:00
Kevin van Zonneveld
61d23a4d03 Add ini_val, megamount, parse_url 2014-11-04 13:19:50 +01:00
Kevin van Zonneveld
7b01d19b19 Release 1.0.2 2014-11-04 13:00:37 +01:00
Kevin van Zonneveld
d5a2aa83fb Add name 2014-11-04 13:00:30 +01:00
Kevin van Zonneveld
7d62e0d7f4 Release 1.0.1 2014-11-04 12:59:34 +01:00
Kevin van Zonneveld
36e429fe35 Use npm for distribution 2014-11-04 12:59:22 +01:00
Kevin van Zonneveld
752036320a Update main.sh 2014-07-29 17:32:23 +02:00
Kevin van Zonneveld
e2602f6a58 Merge branch 'master' of github.com:kvz/bash3boilerplate
Conflicts:
	main.sh
2014-07-23 11:34:05 +02:00
Kevin van Zonneveld
af23876cd1 Bump version 2014-07-23 11:31:42 +02:00
Kevin van Zonneveld
e5af9cf01b Consistent use of longhand options 2014-07-23 11:31:34 +02:00
Kevin van Zonneveld
7304249545 Whitespace 2014-07-23 11:31:17 +02:00
Kevin van Zonneveld
17e7677757 Shrink boilerplate function 2014-07-23 11:30:53 +02:00
Kevin van Zonneveld
3f8ac03553 Color support for more xterms 2014-07-23 11:30:33 +02:00
Kevin van Zonneveld
667bfd7350 Localize function vars 2014-07-23 11:30:09 +02:00
Kevin van Zonneveld
5e492a419c DIR and FILE are actually local vars, so lowercase
Also improve pathfinding to not rely on readlink, and to work as
expected when file is sourced
2014-07-23 11:29:42 +02:00
Kevin van Zonneveld
35b7b8927d Wrap comments for readability 2014-07-23 11:28:54 +02:00
Kevin van Zonneveld
5f1de4077c Better defaulting of ENV vars 2014-07-23 11:28:38 +02:00
Kevin van Zonneveld
61c70a5045 More descriptive doc header 2014-07-23 11:28:23 +02:00
Kevin van Zonneveld
4e35f9fc0c More portable shebang 2014-07-23 11:27:53 +02:00
Kevin van Zonneveld
709d1d544b Add License 2014-07-23 11:27:35 +02:00
Kevin van Zonneveld
c231fa757c Update README.md 2014-01-12 12:03:32 +01:00
Kevin van Zonneveld
d94f32f93a No global scope for local variables 2013-09-06 13:46:32 +02:00
Kevin van Zonneveld
5cc1abc71a Fix Typo 2013-09-06 13:24:18 +02:00
Kevin van Zonneveld
ef898f55e9 Change /bin/bash shebang to /usr/bin/env for better portability 2013-04-19 13:14:38 +02:00
Kevin van Zonneveld
2155d65692 Write all messages to stderr
So that scripts based on bash3boilerplate are easier to use before pipes.  
It also makes it feasible to use an emergency inside a function without losing emergency's output being captured by the function's caller
2013-04-18 17:09:24 +03:00