Commit Graph

426 Commits

Author SHA1 Message Date
Kevin van Zonneveld
8146667ea1 Merge branch 'master' of github.com:kvz/bash3boilerplate 2019-11-05 09:32:59 +01:00
dependabot[bot]
2019caa899 Bump extend from 3.0.0 to 3.0.2 (#121)
Bumps [extend](https://github.com/justmoon/node-extend) from 3.0.0 to 3.0.2.
- [Release notes](https://github.com/justmoon/node-extend/releases)
- [Changelog](https://github.com/justmoon/node-extend/blob/master/CHANGELOG.md)
- [Commits](https://github.com/justmoon/node-extend/compare/v3.0.0...v3.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-03 20:31:06 +01:00
dependabot[bot]
357ea3778a Bump mime from 1.3.4 to 1.4.1 (#122)
Bumps [mime](https://github.com/broofa/node-mime) from 1.3.4 to 1.4.1.
- [Release notes](https://github.com/broofa/node-mime/releases)
- [Changelog](https://github.com/broofa/node-mime/blob/master/CHANGELOG.md)
- [Commits](https://github.com/broofa/node-mime/compare/v1.3.4...v1.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-11-03 20:30:58 +01:00
Kevin van Zonneveld
f377dfb16e Update .travis.yml 2019-10-29 13:14:25 +01:00
Kevin van Zonneveld
f77b400dc9 Fix main-repeated tests, flags weren't incremented before 2019-10-29 10:43:47 +01:00
Kevin van Zonneveld
03662dd404 Update main-repeated.stdio 2019-10-29 10:43:30 +01:00
Kevin van Zonneveld
b8a4aba3c2 Allow outputting both flags and arrays for arg_i and arg_x
This should later probably be split so we have dedicated varnames for the different types, as we're now making the template uglier just to accomodate our tests
2019-10-29 09:57:59 +01:00
Kevin van Zonneveld
685442bbcc Fix empty line crashing acceptance test 2019-10-29 09:56:40 +01:00
Kevin van Zonneveld
16b543114b Offer easier way to run a test scenario in debug mode 2019-10-29 09:52:34 +01:00
Kevin van Zonneveld
7791e3ca0f Isolate test: main-repeated 2019-10-29 09:16:13 +01:00
Kevin van Zonneveld
1152cc3cf7 Upgrade to latest Lanyon 2019-10-29 09:14:02 +01:00
Kevin van Zonneveld
b4048f3f12 Update .travis.yml 2019-10-29 08:45:11 +01:00
Kevin van Zonneveld
11cd18e179 Update colors in test fixtures 2019-10-29 08:42:15 +01:00
Kevin van Zonneveld
05f35415a6 Address ShellCheck error
```
In ./test/acceptance.sh line 101:
        -e "s@{root}/node_modules/\.bin/node@{node}@g" "${curFile}" \
                                  ^-- SC1117: Backslash is literal in "\.". Prefer explicit escaping: "\\.".
```
2019-10-29 08:42:04 +01:00
Kevin van Zonneveld
ec9087f0d2 Ignore any shell script in the website directory 2019-10-29 08:41:35 +01:00
Kevin van Zonneveld
5a9a68be2b Fix Typo 2019-10-29 08:41:22 +01:00
Kevin van Zonneveld
97f9676754 Rename save:fixtures to test:update which is more in line with how e.g. Jest does it 2019-10-29 08:41:16 +01:00
Kevin van Zonneveld
83c77f8df3 -v operator was added in bash 4.2 while we target bash 3 -- Part II 2019-10-29 08:41:01 +01:00
Kevin van Zonneveld
04cf154b3e Upgrade to Node 10 on Travis 2019-10-29 08:35:42 +01:00
Kevin van Zonneveld
4085bc461e -v operator was added in bash 4.2 while we target bash 3 2019-10-29 08:34:52 +01:00
Kevin van Zonneveld
8e548e766e Fix Cabal warnings on Travis
Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install

command or the legacy v1-install alias as new-style projects will become the

default in the next version of cabal-install. Please file a bug if you cannot

replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

cabal: There is no package named 'shellcheck'. However, the following package

name exists: 'ShellCheck'.
2019-10-29 08:34:37 +01:00
Kevin van Zonneveld
d908e8b362 Release 2.4.0 2019-10-08 16:07:32 +02: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
Kevin van Zonneveld
ff89a1154b Add --allow-unauthenticated which hopefully fixes #119 2019-09-20 11:35:02 +02:00
Kevin van Zonneveld
9f31a5e969 Create bash3boilerplate.code-workspace 2019-09-20 11:34:43 +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
QwertyZW
7b7d31a1bf Improve debug mode (#103)
Add file, line number, function name and function line offset
2019-05-06 10:04:09 +02:00
Manuel Streuhofer
ba0e7150cb close issue #108 (#109)
* added test for issue-108

* Closes #108

* fixed some easy shellcheck complaints

* trying to fix travis/debian-sid/shellcheck problem
2018-09-03 12:00:55 +02:00
Gabriel A. Devenyi
2048e4303e Add || true to fix __invocation with no arguments (#102) 2018-06-26 15:55:16 +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
Manuel Streuhofer
ee869a9584 templater.sh: use perl if available (#98) 2018-01-25 10:35:53 +01:00
Manuel Streuhofer
f57e37eb68 fix templater.sh and associated test
templater.sh now escapes the delimiter it uses for its sed magic within
the environment variable content.

the associated test uses a properly cleaned up temporary file instead of
explicitly rm-ing its own mess.
2018-01-23 22:02:57 +01: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
Manuel Streuhofer
860a7de899 shellcheck lead me astray 2018-01-21 23:19:16 +01:00
Manuel Streuhofer
236e3c7eca fix shellcheck errors
shellcheck 0.4.7 seems to have come up with new checks and now complains
about yet more possible issues. fixed them all as good as i could.
2018-01-21 23:02:03 +01:00
Kevin van Zonneveld
cf7d25e3d1 Build plz 2017-08-22 10:25:59 +02:00
Izaak "Zaak" Beekman
d25d6a0106 Merge pull request #93 from gmasse/fix_templater
templater.sh: Update Regexp to not match ${_} for replacement
2017-08-21 09:29:42 -04:00
Germain Masse
9b7a9ccd17 Fix Travis CI failure on src/templater.sh 2017-08-21 10:01:59 +02:00
Germain Masse
38622845a8 Update Regexp to not match ${_} for replacement 2017-08-21 09:34:44 +02:00
Izaak "Zaak" Beekman
0289532f18 Merge pull request #92 from gmasse/auto-color-screen
Enable color in screen or tmux
2017-08-14 15:14:29 -04: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
Kevin van Zonneveld
63c402912a Upgrade Lanyon to v0.0.92 2017-07-06 11:39:50 +02:00
Kevin van Zonneveld
0c2a580041 Set new bot token 2017-05-12 11:31:55 +02:00
Giovanni Saponaro
eac5ad8022 Fix typos in megamount (#89) 2017-05-04 13:48:18 +02:00
Kevin van Zonneveld
9f3aa6ead9 Upgrade Lanyon to v0.0.86 2017-05-02 09:56:04 +02:00