Updates for how to source "mo" and then use it

When you source mo, it adds the "mo" function to the environment.
This commit is contained in:
Tyler Akins
2015-08-27 09:44:04 -05:00
parent e623b16bb8
commit b16d73b5a7
8 changed files with 18 additions and 9 deletions

View File

@@ -4,8 +4,9 @@ cd "$(dirname "$0")" # Go to the script's directory
declare -A DATA
DATA=([one]=111 [two]=222)
. ../mo
cat <<EOF | . ../mo
cat <<EOF | mo
Accessing data directly:
DATA: {{DATA}}
One: {{DATA.one}}