Commit Graph

119 Commits

Author SHA1 Message Date
Tyler Akins
1d2617dde1 Confirming multiple --source arguments work 2020-10-01 07:37:48 -05:00
Tyler Akins
dcd9d7738b Adding tests, shellcheck cleanup, update docs, release 2.2.0 2020-08-05 15:44:04 -05:00
Tyler Akins
65f12277e6
Merge pull request #40 from ynqa/show-latest-version
fix: show latest version for usage of mo
2020-08-05 11:37:38 -08:00
Tyler Akins
8cd67fb908
Merge pull request #39 from felipecassiors/felipecassiors/fail-on-function
Add fail on function
2020-08-05 11:27:50 -08:00
ynqa
bdb795bddf show 2.1.0 for mo usage 2020-08-06 00:01:09 +09:00
Felipe Santos
1f39b0f568 Add fail on function 2020-07-29 20:19:32 +00:00
Tyler Akins
0e6247e9e9
Merge pull request #37 from l2dy/whitespace
Remove trailing whitespace
2020-02-26 07:55:43 -06:00
Zero King
891b6a5de2 Remove trailing whitespace 2020-02-26 05:54:17 +00:00
Tyler Akins
3828588512
Showing how to write output that includes braces 2019-08-22 15:59:05 -05:00
Tyler Akins
929ffc5b88
Merge pull request #32 from andreax79/master
Pass arguments to function as environment variable MO_ALLOW_FUNCTION_ARGUMENTS
2019-08-08 07:47:44 -05:00
Andrea Bonomi
5b8cf24068 Pass arguments to function as environment variable MO_ALLOW_FUNCTION_ARGUMENTS 2019-08-08 11:43:50 +02:00
Andrea Bonomi
fcedd32155 Pass arguments to function as environment variable MO_ARGS 2019-08-07 15:01:51 +02:00
Tyler Akins
9f6d3bcdab
Adding an example
Shows how one can solve #29
2019-07-19 20:22:27 -05:00
Tyler Akins
eac2685632
Adding an example for adding a comma
This closes #26.
2019-04-14 06:25:06 -05:00
Tyler Akins
505570a57b
Adding short options
Feature request #25
2019-03-13 20:38:00 -05:00
Tyler Akins
aabc62f1d6
Merge pull request #22 from mamercad/mamercad-curl-follow-redirects
curl needs to follow redirects
2018-03-13 07:25:13 -05:00
Mark Mercado
e672bda163
curl needs to follow redirects 2018-03-13 08:11:43 -04:00
Tyler Akins
dbefade193
Adding a version number
It is shown with --help. It's also available as $MO_VERSION when mo is
sourced.
2017-11-30 05:43:10 -06:00
Tyler Akins
57a8d41394
Merge pull request #21 from jas99/patch-1
Fix: Intall issue
2017-11-20 07:22:43 -06:00
Jaspreet Singh
5739ccd705
Fix: Intall issue
Added -L flag to curl; so as to allow following redirect.
2017-11-19 15:53:12 +05:30
Tyler Akins
f889c37316
Found another issue with strict mode 2017-11-13 13:53:38 -06:00
Tyler Akins
4f615a0faf
More fixes if variables are not set and strict mode is enabled 2017-11-13 10:43:32 -06:00
Tyler Akins
1e91e414cc
Fix for when running in strict mode 2017-11-13 10:31:51 -06:00
Tyler Akins
ad98577c42
Changing how functions are called
Old way:

    functionName CONTENT argument1 argument2

New way:

    echo -n "$CONTENT" | functionName argument1 argument2

This follow the Unix style more closely.
2017-11-13 10:13:56 -06:00
Tyler Akins
e78b15d95b
Updating test to enable the flag 2017-11-03 19:38:34 -05:00
Tyler Akins
f20e4ae83a
Making a bit more safe and disabling an eval by default 2017-11-03 16:45:51 -05:00
Tyler Akins
a5ec7dd740
I think this finally implements arguments to functions
This closes #18.
2017-11-03 16:34:08 -05:00
Tyler Akins
ab5dfee519
Fixing install directions 2017-10-24 07:47:50 -05:00
Tyler Akins
81fd601ebd
Shortening URL 2017-10-23 15:11:23 -05:00
Tyler Akins
9896712932
Releasing 1.0.0
This is the first tagged release of "mo", following the semantic
versioning scheme. Major releases can have breaking changes. Minor
releases can have additional functionality and will preserve all
existing functionality. Patch releases will have only bugfixes.

Thanks for prodding me into this, @dagrooms52
2017-09-27 15:14:42 -05:00
Tyler Akins
0627cbbaf8
Making tests care about whitespace
When testing #19 I found that the tests were mistakenly ignoring some
whitespace changes. I've enabled whitespace checks and had to update the
tests because my editor likes newlines at the end of files and removes
whitespace at the end of lines. To make the test files easier to manage,
I've modified some scenarios to still test for the feature but also work
with the whitespace modifications that editors would perform.
2017-08-02 10:35:35 -05:00
Tyler Akins
f14150c205
Fixing indentation of partials in a condition
This is to address #19.
2017-08-02 10:34:58 -05:00
Tyler Akins
00af9e978c
Making the specs run again in an easier way 2017-08-02 10:34:09 -05:00
Tyler Akins
2447f40abd Merge pull request #17 from maslennikov/master
Fix exit code when partial file not found
2017-06-23 14:19:01 -05:00
Alexey Maslennikov
078dcabb06 Fix exit code when partial file not found 2017-06-23 21:10:38 +02:00
Tyler Akins
6376a9b817
Fixing indentation of multiple partials
This fixes #16.
2017-06-20 14:19:44 -05:00
Tyler Akins
e6787e71d5 Merge pull request #15 from maslennikov/master
Adding an option to fail upon unset env variables
2017-06-16 11:52:22 -05:00
Alexey Maslennikov
31b2faf135 Fixing empty variable failure for --fail-not-set 2017-06-16 15:59:57 +02:00
Alexey Maslennikov
2b611b8f90 Making --fail-not-set work with partials
The return code was not propagated through nested subshells in case
when files were passed in as arguments.
2017-06-16 10:50:18 +02:00
Alexey Maslennikov
50aa18e2a6 Adding an option to fail upon unset env variables 2017-06-16 10:47:31 +02:00
Tyler Akins
4ccfaf9d79
Making work in strict mode and fixing len bug 2017-04-21 12:19:21 -05:00
Tyler Akins
0ca9970b58
Fixing multi-line partials 2017-04-21 09:37:16 -05:00
Tyler Akins
8142f70769
Fixing indentation of partials 2017-04-21 09:30:32 -05:00
Tyler Akins
387fc478fc Merge pull request #14 from tests-always-included/fix-ifs-again
Fixing bug with array substrings
2017-02-23 14:20:36 -06:00
Tyler Akins
c2979c0fb8
Fixing bug with array substrings
Found on tests-always-included/wick#113
This was the solution first suggested by fidian/gg-core#7
2017-02-23 13:51:12 -06:00
Tyler Akins
62478ba084 Merge pull request #13 from tests-always-included/fix-array-slicing
Fixing the array slicing for Bash 3
2017-02-21 15:05:01 -06:00
Tyler Akins
a97368c74f
Fixing the array slicing for Bash 3
This IFS problem only happens on Bash 3 in some circumstances.
2017-02-21 11:00:39 -06:00
Tyler Akins
ecfc973c2f
Fixing --source to parse the right argument
This is addressing #12
2016-12-20 07:27:06 -06:00
Tyler Akins
410883c85d
Updates for style and to fix exit on error in some contexts 2016-12-15 18:11:29 -06:00
Tyler Akins
17f0e4be3d
Included installation instructions.
This closes #11.
2016-12-14 07:41:33 -06:00