Commit Graph

49 Commits

Author SHA1 Message Date
Kevin van Zonneveld
38f269c660
Update CHANGELOG.md 2023-08-29 12:45:04 +02:00
Kevin van Zonneveld
a6a2d961ae
Update CHANGELOG.md 2023-08-29 12:41:50 +02:00
Kevin van Zonneveld
9a27140e7e
Deprecate Lanyon-based website in favor of a simple redirect to github 2023-08-29 12:01:10 +02:00
Kevin van Zonneveld
9fd3f1df64 Update CHANGELOG.md 2020-04-22 10:01:55 +02:00
Kevin van Zonneveld
23ce0e6b85 Merge branch 'master' of github.com:kvz/bash3boilerplate 2020-04-22 09:51:38 +02:00
Kevin van Zonneveld
6392674f70 Update CHANGELOG.md 2020-04-22 09:48:03 +02:00
R. Fuehrer
971a83ea3a Enhanced ini file handling (#128)
* Add ini file creation if not exists
Add section creation if not exists
Add default section if section not given
Fix read key value only from given (or default) section

* Fix to support platform specific sed

* Fixed typo in comment

* Fix test scenario to reflect changes to the (introduced) default section

* Fix expectations for scenario test

* Fix style guide compatibility
2019-12-31 15:16:08 +01:00
Gert Goet
599faf3830 Correct error_code in err_report (#124) (#125) 2019-11-18 11:56:18 +01:00
Kevin van Zonneveld
0d096350b0 Update CHANGELOG.md 2019-11-07 14:24:19 +01:00
Kevin van Zonneveld
a28d594d5f Update CHANGELOG.md 2019-11-07 14:23:19 +01:00
Kevin van Zonneveld
9250d036dc Update CHANGELOG.md 2019-10-08 16:07:27 +02:00
gmeral
ea57d157c7 #111 more contrasted colors for alert and emergency (#112)
* Set alert and emergency colors to more readable values

* Add entry to CHANGELOG.md about #111
2019-09-20 11:43:30 +02:00
Lukas Stockner
95b9cb1469 Add support for repeatable arguments (#118)
* Add support for declaring arguments as repeatable

If the usage of the argument includes the phrase "Can be repeated.",
the corresponding arg_ variable will be an array containing one element
per instance of the argument.

* Add example and test for using repeated parameters

* Add example and test for using repeated flags
2019-09-20 11:40:06 +02:00
Lukas Stockner
664e55ad1e Fix or silence remaining warnings with shellcheck v0.7.0 (#117)
SC2235: The warning/suggestion about the subshell was letigimate, so
the suggested fix is implemented.

SC2034: The variable __invocation is indeed unused, but it's supposed
to be there in case the script using bash3boilerplate wants to use it,
so this commit silences the warning.

SC1102: The warning about the parsing of $((( is legitimate, so the
suggested fix is implemented.

SC2015: While the warning is correct in general, here 'true' has no
side effects hence it can be silenced.

Fixes #107.
2019-09-20 11:30:59 +02:00
Gabriel A. Devenyi
327cba75c9 Add magic variable that stores the full command line invocation (#99)
Provides variable __invocation which contains the command line
with proper separators maintained.

Adapted from https://stackoverflow.com/a/36625791
2018-06-06 15:28:55 +02:00
A. G. Madi
2463cd6cc9 Allow counting how many times an argument is used. (#96)
An example of use would be the passing in of multiple -v options in some utilities to increase verbosity.
2018-01-22 15:21:48 +01:00
Germain Masse
9b7a9ccd17 Fix Travis CI failure on src/templater.sh 2017-08-21 10:01:59 +02:00
Germain Masse
2fcd0a765b
Fix typo in FAQ: 'Default:' to 'Default=' 2017-08-14 20:37:12 +02:00
Germain Masse
48848fd17c
Cange egrep to grep -E in templater.sh script to comply with ShellCheck 2017-08-14 20:35:18 +02:00
Germain Masse
84685a451b
Change egrep to grep -E in acceptance test script to comply with ShellCheck 2017-08-14 18:29:21 +02:00
Germain Masse
12ea4dd75f
Enable color in screen or tmux 2017-08-13 21:08:59 +02:00
Giovanni Saponaro
eac5ad8022 Fix typos in megamount (#89) 2017-05-04 13:48:18 +02:00
Kevin van Zonneveld
ef04df597b Fix diff 2017-02-15 09:49:46 +01:00
Kevin van Zonneveld
e7e85ddff3 Upgrade to lanyon@0.0.55 2017-02-15 09:49:36 +01:00
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
Kevin van Zonneveld
21cafb3c34 Update changelog 2016-12-21 09:59:32 +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
e6275924b5 Update CHANGELOG.md 2016-11-08 13:07:20 +01:00
Kevin van Zonneveld
35b51072b3 No more os detection (#41) 2016-06-24 13:12:41 +02:00
Kevin van Zonneveld
8bbba18f7e Offer the main template for download as http://bash3boilerplate.sh/main.sh 2016-06-24 11:47:28 +02:00
Kevin van Zonneveld
03a2ec5adf Better OS detection (#39) 2016-06-23 16:20:45 +02:00
Kevin van Zonneveld
e4848e360a Update CHANGELOG.md. #34 2016-06-22 20:46:52 +02:00
Kevin van Zonneveld
28865fc633 Update CHANGELOG.md 2016-06-21 13:55:17 +02:00
Kevin van Zonneveld
008face7c8 Less verbose header comments 2016-06-21 13:48:08 +02:00
Kevin van Zonneveld
4926bbc942 For delete-key-friendliness, don't crash on undeclared help vars 2016-06-21 13:38:47 +02:00
Kevin van Zonneveld
649b5a0f44 Introduce errtrace, which is on by default (BREAKING) 2016-06-21 13:36:48 +02:00
Kevin van Zonneveld
f7fc992b2d Update CHANGELOG.md 2016-06-21 13:36:28 +02:00
Kevin van Zonneveld
95365e6f92 Syntax highlighting 2016-06-21 11:24:20 +02:00
Kevin van Zonneveld
26e282c37f Smoother navigation and changelog 2016-06-21 11:20:59 +02:00
Kevin van Zonneveld
ff881d529f Update CHANGELOG.md 2016-06-21 10:21:05 +02:00
Kevin van Zonneveld
ae230acc3b Add best practice of using __double_underscore_prefixed_vars 2016-06-21 10:21:00 +02:00
Kevin van Zonneveld
d0ece6da76 Website (#30)
* Base on apex.run

* More custom themie

* Loop to write

* Support inline links

* Smaller header

* Auto-deploys via travis

* Rewording to make for a better homepage
2016-06-21 09:40:25 +02:00
Kevin van Zonneveld
18525f72da Make the license less restrictive. See #14 (#28)
* Make the license less restrictive. See #14

So that people can use _just_ main.sh without bothering with also
distributing the license

* Add license update to changelog

* Add a comment about expansion, see #26

* Use an unmodified MIT License, with the more permissive clause inside the code

As modifying the MIT License will needlessly (but rightfully) cause
suspicion

* Credit @bravo-kernel for his feedback

* Fix another typo

* Reword copyright
2016-06-20 09:57:31 +02:00
Kevin van Zonneveld
fc7802d707 Respect --no-color by setting the NO_COLOR flag in main.sh. Fixes #25. thx @gdevenyi 2016-06-19 13:06:53 +02:00
Kevin van Zonneveld
8687e384eb Split out changelog into separate file, credit @rouson for the FAQ 2016-03-03 12:45:07 +01:00