Skip to content

Commit

Permalink
Merge pull request #3 from richbl/dev
Browse files Browse the repository at this point in the history
Rev to latest bash-lib sub-module
  • Loading branch information
richbl committed Jan 19, 2022
2 parents 6f68b02 + d2de62c commit 30e6672
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The JSON file used in **A-Bash-Template** is displayed below:
{
"title": "A bash template (BaT) to ease argument parsing and management",
"syntax": "bash_template.sh -a alpha -b bravo [-c charlie] -d delta",
"version": "1.1.0"
"version": "1.1.1"
},
"arguments":
[
Expand Down Expand Up @@ -76,7 +76,7 @@ The informational banner that displays details about how to use the script is ge

|
| A bash template (BaT) to ease argument parsing and management
| 1.1.0
| 1.1.1
|
| Usage:
| bash_template.sh -a alpha -b bravo [-c charlie] -d delta
Expand All @@ -97,7 +97,7 @@ When **A-Bash-Template** is first run, it parses the command line to identify co

|
| A bash template (BaT) to ease argument parsing and management
| 1.1.0
| 1.1.1
|
| Usage:
| bash_template.sh -a alpha -b bravo [-c charlie] -d delta
Expand Down Expand Up @@ -131,7 +131,7 @@ Here's the default response when running `bash_template.sh` with no arguments:

|
| A bash template (BaT) to ease argument parsing and management
| 1.1.0
| 1.1.1
|
| Usage:
| bash_template.sh -a alpha -b bravo [-c charlie] -d delta
Expand All @@ -156,7 +156,7 @@ When arguments are correctly passed, the script provides feedback on the success

|
| A bash template (BaT) to ease argument parsing and management
| 1.1.0
| 1.1.1
|
| Usage:
| bash_template.sh -a alpha -b bravo [-c charlie] -d delta
Expand Down
2 changes: 1 addition & 1 deletion bash-lib
Submodule bash-lib updated 3 files
+2 −3 README.md
+29 −34 args
+15 −13 general
9 changes: 5 additions & 4 deletions bash_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License at
# FOR A PARTICULAR PURPOSE. See the GNU General Public License at
# <http://www.gnu.org/licenses/> for more details.
#
# -----------------------------------------------------------------------------
Expand All @@ -38,8 +38,9 @@ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# -----------------------------------------------------------------------------
# script library sources and declarations
#
. "$(cd "$(dirname "$0")" && pwd)/bash-lib/args"
. "$(cd "$(dirname "$0")" && pwd)/bash-lib/general"
EXEC_DIR="$(dirname "$(readlink -f "$0")")"
source "${EXEC_DIR}/bash-lib/general"
source "${EXEC_DIR}/bash-lib/args"

# [user-config] set any external program dependencies here
declare -a REQ_PROGRAMS=('jq')
Expand Down Expand Up @@ -74,4 +75,4 @@ if [ -n "${ARG_CHARLIE}" ]; then
printf "%s\n" "charlie is $ARG_CHARLIE"
fi

printf "%s\n" "delta is $ARG_DELTA"
printf "%s\n" "delta is $ARG_DELTA"
2 changes: 1 addition & 1 deletion data/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"title": "A bash template (BaT) to ease argument parsing and management",
"syntax": "bash_template.sh -a alpha -b bravo [-c charlie] -d delta",
"version": "1.1.0"
"version": "1.1.1"
},
"arguments":
[
Expand Down

0 comments on commit 30e6672

Please sign in to comment.