From 0074b6f1fbc8b0a550dd7f2461b993225249a9e3 Mon Sep 17 00:00:00 2001 From: James Pannacciulli Date: Wed, 29 Nov 2017 01:00:28 -0800 Subject: add support for specifying custom examples file or instantiated array name --- USAGE | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'USAGE') diff --git a/USAGE b/USAGE index 7403d76..75e92a3 100644 --- a/USAGE +++ b/USAGE @@ -4,8 +4,12 @@ ariketa: bash example code quickloader for presentations usage ----- To load ariketa, source it into the bash session you wish to use for the - presentation: - source ./ariketa.sh + presentation. If no array name or filename is provided to source the + _examples array from, ariketa will attempt to load 'config/examples.sh' + from the ariketa directory: + source ariketa + source ariketa [-a|--array EXAMPLES_ARRAYNAME] + source ariketa [EXAMPLES_FILENAME] When an example is displayed, it may be edited like any command line and executed normally by pressing enter. Use the following key bindings to @@ -30,7 +34,5 @@ configuration ------------- To load examples into ariketa, edit the 'examples.sh' file in the 'config' directory. This file should be a sourceable bash script which - creates an indexed array named '_examples', whose elements have values - beginning with a tag, delineated from the example itself by a ':' character - followed by a newline. An sample config is located in + creates an indexed array named '_examples'. An sample config is located in 'config/examples.sh.sample'. -- cgit v1.2.3