mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-23 01:52:22 +00:00
45475ec77e
Add a demo/sourcing.vars file to be used by the associated demo script. Modified mo argument parsing so that --help and --source=file do not need to be the first arguments for mo. And can in fact appear after or in the middle of filenames.
13 lines
285 B
Bash
Executable File
13 lines
285 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# This sources a simple script with the env. variables needed for the template.
|
|
|
|
cd "$(dirname "$0")" # Go to the script's directory
|
|
|
|
cat <<EOF | ../mo --source=sourcing.vars
|
|
Hello, my name is {{NAME}}.
|
|
And this is ARRAY's conntents:
|
|
{{#ARRAY}}
|
|
* {{.}}
|
|
{{/ARRAY}}
|
|
EOF |