Tyler Akins
5a49fe9900
Releasing 3.0.6
2024-06-16 21:13:43 -05:00
Tyler Akins
8056ee6961
Only cut strings once
...
It's faster to loop through the string and check the character at an
index than it is to trim single characters from the end in a loop.
Trimming multiple characters in the loop is surprisingly slower than
trimming one.
Addresses more of the speed problem reported in #73 .
2024-06-16 21:11:45 -05:00
Tyler Akins
5db34e55d3
Caching function name lookups
...
Faster than dumping functions each time.
Related to #73 .
2024-06-16 21:11:02 -05:00
Tyler Akins
26ca5059d8
Fix slowness with larger templates
...
Closes #69 and #71
Released 3.0.5
2024-03-27 21:57:11 -05:00
Tyler Akins
6e57510ba9
Making it more clear that sourced files are shell
...
Addresses part of the concerns from #69
2023-11-16 16:04:52 -06:00
Tyler Akins
54b2184b70
Bumping version
2023-09-10 08:11:54 -05:00
Tyler Akins
84d17268c9
Work with symbolic links
2023-09-10 08:10:51 -05:00
Tyler Akins
68306c4c6d
More Bash 4.x compatibility issues found and fixed
2023-05-12 08:17:57 -05:00
Tyler Akins
6cc72acde0
Fix #67 - unbound variable error
...
Release 3.0.1
2023-05-12 07:44:48 -05:00
Tyler Akins
0ce41dedb1
Releasing 3.0.0
2023-05-07 21:18:00 -05:00
Tyler Akins
0617b2ed35
Various bugfixes
...
Specs: 181 total, 119 pass (with 7 overridden), 55 fail, 7 skip
2023-04-23 10:04:59 -05:00
Tyler Akins
1d4e186486
All tests pass.
...
Specs: 181 total, 111 pass (with 7 overridden), 63 fail, 7 skip.
2023-04-23 09:24:36 -05:00
Tyler Akins
0f150ccb19
Fixing standalone detection with blocks
...
27 tests pass, 18 still fail
2023-04-22 08:16:49 -05:00
Tyler Akins
00af7d49f0
Bugfixes
2023-04-21 21:18:55 -05:00
Tyler Akins
0896e2b966
Parser rewritten again
2023-04-21 20:59:31 -05:00
Tyler Akins
511a3187e8
Changing how parsed/unparsed content is tracked
...
Use global variables instead of passing to every function.
112 specs pass, 7 overridden, 62 fail, 7 skipped.
2023-04-10 21:07:45 -05:00
Tyler Akins
d32b912472
Moving delimiters and standalone to global vars
2023-04-10 13:24:06 -05:00
Tyler Akins
3a58ee390e
More bugfixes and shellcheck tweaks
2023-04-10 11:39:47 -05:00
Tyler Akins
7604ce3054
Pass shellcheck, more specs are handled, preserve function whitespace
...
This closes #49 .
2023-04-10 08:10:14 -05:00
Tyler Akins
e0e9189355
Bugfixes, pretty printing, new tests added
...
Spec result: 108 specs pass, 6 skipped, 67 fail
2023-04-09 18:53:55 -05:00
Tyler Akins
a1e4398547
Overriding some tests so they work with mo + bugfix
2023-04-09 10:20:45 -05:00
Tyler Akins
47e10012ee
Splitting parse function, fixing variable bug
2023-04-09 09:52:18 -05:00
Tyler Akins
a237d23a2d
Fix standalone tag detection
2023-04-08 19:06:04 -05:00
Tyler Akins
501ca2144f
Need to trim whitespace in the tag
2023-04-08 12:41:31 -05:00
Tyler Akins
d997ad0e0a
Passes all of the tests
2023-04-07 23:10:47 -05:00
Tyler Akins
febd3467c8
Attempting to address shortcomings and whitespace issues
2023-04-07 19:35:25 -05:00
Tyler Akins
8e9fd680d4
Fixing a test, release 2.4.1
2023-04-05 21:14:19 -05:00
Tyler Akins
24e80aedaa
Bumping version
...
2.3.0 was already tagged
2023-04-05 20:55:16 -05:00
Tyler Akins
4311f29879
Fixing the build, some doc cleanup, update version
2023-04-05 20:54:27 -05:00
Joseph Dalrymple
c28bffe708
Added @key loop accessor
2023-04-05 20:19:29 -05:00
Tyler Akins
3aa5c462f8
Quoting variable
...
This suggestion is brought to you by neema80 - thank you!
This closes #48 .
2021-11-25 15:36:47 -06:00
Tyler Akins
67ba8bae2c
Calling out that the argument can be used multiple times
2020-10-01 07:39:02 -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
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
Zero King
891b6a5de2
Remove trailing whitespace
2020-02-26 05:54:17 +00: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
505570a57b
Adding short options
...
Feature request #25
2019-03-13 20:38:00 -05: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
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
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
f14150c205
Fixing indentation of partials in a condition
...
This is to address #19 .
2017-08-02 10:34:58 -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