mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
Making it more clear that sourced files are shell
Addresses part of the concerns from #69
This commit is contained in:
parent
54b2184b70
commit
6e57510ba9
@ -117,6 +117,8 @@ There are more scripts available in the [demos directory](demo/) that could help
|
|||||||
|
|
||||||
There are additional features that the program supports. Try using `mo --help` to see what is available.
|
There are additional features that the program supports. Try using `mo --help` to see what is available.
|
||||||
|
|
||||||
|
Please note that this command is written in Bash and pulls data from either the environment or (when using `--source`) from a text file that will be sourced and loaded into the environment, which means you will need to have Bash-style variables defined. Please see the examples in `demo/` for different ways you can use `mo`.
|
||||||
|
|
||||||
|
|
||||||
Enhancements
|
Enhancements
|
||||||
-----------
|
-----------
|
||||||
|
5
mo
5
mo
@ -38,7 +38,8 @@
|
|||||||
#/ This message.
|
#/ This message.
|
||||||
#/ -s=FILE, --source=FILE
|
#/ -s=FILE, --source=FILE
|
||||||
#/ Load FILE into the environment before processing templates.
|
#/ Load FILE into the environment before processing templates.
|
||||||
#/ Can be used multiple times.
|
#/ Can be used multiple times. The file must be a valid shell script
|
||||||
|
#/ and should only contain variable assignments.
|
||||||
#/ -o=DELIM, --open=DELIM
|
#/ -o=DELIM, --open=DELIM
|
||||||
#/ Set the opening delimiter. Default is "{{".
|
#/ Set the opening delimiter. Default is "{{".
|
||||||
#/ -c=DELIM, --close=DELIM
|
#/ -c=DELIM, --close=DELIM
|
||||||
@ -1949,7 +1950,7 @@ mo::tokenizeTagContentsSingleQuote() {
|
|||||||
|
|
||||||
# Save the original command's path for usage later
|
# Save the original command's path for usage later
|
||||||
MO_ORIGINAL_COMMAND="$(cd "${BASH_SOURCE[0]%/*}" || exit 1; pwd)/${BASH_SOURCE[0]##*/}"
|
MO_ORIGINAL_COMMAND="$(cd "${BASH_SOURCE[0]%/*}" || exit 1; pwd)/${BASH_SOURCE[0]##*/}"
|
||||||
MO_VERSION="3.0.3"
|
MO_VERSION="3.0.4"
|
||||||
|
|
||||||
# If sourced, load all functions.
|
# If sourced, load all functions.
|
||||||
# If executed, perform the actions as expected.
|
# If executed, perform the actions as expected.
|
||||||
|
@ -43,7 +43,8 @@ Options:
|
|||||||
This message.
|
This message.
|
||||||
-s=FILE, --source=FILE
|
-s=FILE, --source=FILE
|
||||||
Load FILE into the environment before processing templates.
|
Load FILE into the environment before processing templates.
|
||||||
Can be used multiple times.
|
Can be used multiple times. The file must be a valid shell script
|
||||||
|
and should only contain variable assignments.
|
||||||
-o=DELIM, --open=DELIM
|
-o=DELIM, --open=DELIM
|
||||||
Set the opening delimiter. Default is "{{".
|
Set the opening delimiter. Default is "{{".
|
||||||
-c=DELIM, --close=DELIM
|
-c=DELIM, --close=DELIM
|
||||||
@ -93,7 +94,7 @@ This is open source! Please feel free to contribute.
|
|||||||
|
|
||||||
https://github.com/tests-always-included/mo
|
https://github.com/tests-always-included/mo
|
||||||
|
|
||||||
MO_VERSION=3.0.3
|
MO_VERSION=3.0.4
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user