|
2 | 2 | #
|
3 | 3 | # Framework for writing "./go" scripts in Bash.
|
4 | 4 | #
|
5 |
| -# Version: v1.0.0 |
6 |
| -# URL: https://github.com/mbland/go-script-bash |
7 |
| -# |
8 | 5 | # To use this framework, create a bash script in the root directory of your
|
9 | 6 | # project to act as the main './go' script. This script need not be named 'go',
|
10 | 7 | # but it must contain the following as the first and last executable lines,
|
@@ -35,19 +32,25 @@ if [[ "${BASH_VERSINFO[0]}" -lt '3' || "${BASH_VERSINFO[1]}" -lt '2' ]]; then
|
35 | 32 | exit 1
|
36 | 33 | fi
|
37 | 34 |
|
| 35 | +# The version of the framework |
| 36 | +# |
| 37 | +# NOTE: |
| 38 | +# ---- |
| 39 | +# This and other variables are exported, so that command scripts written in |
| 40 | +# languages other than Bash (and hence run in new processes) can access them. |
| 41 | +# See `./go vars` and `./go help vars`. |
| 42 | +declare -r -x _GO_CORE_VERSION='v1.0.0' |
| 43 | + |
| 44 | +# The URL of the framework's original source repository |
| 45 | +declare -r -x _GO_CORE_URL='https://github.com/mbland/go-script-bash' |
| 46 | + |
38 | 47 | declare __go_orig_dir="$PWD"
|
39 | 48 | cd "${0%/*}" || exit 1
|
40 | 49 |
|
41 | 50 | # Path to the project's root directory
|
42 | 51 | #
|
43 | 52 | # This is directory containing the main ./go script. All functions, commands,
|
44 | 53 | # and scripts are invoked relative to this directory.
|
45 |
| -# |
46 |
| -# NOTE: |
47 |
| -# ---- |
48 |
| -# This and other variables are exported, so that command scripts written in |
49 |
| -# languages other than Bash (and hence run in new processes) can access them. |
50 |
| -# See `./go vars` and `./go help vars`. |
51 | 54 | declare -r -x _GO_ROOTDIR="$PWD"
|
52 | 55 |
|
53 | 56 | if [[ "${BASH_SOURCE[0]:0:1}" != '/' ]]; then
|
@@ -104,9 +107,6 @@ declare -x _GO_CMD_NAME=
|
104 | 107 | # string with the arguments delimited by the ASCII NUL character ($'\0').
|
105 | 108 | declare -x _GO_CMD_ARGV=
|
106 | 109 |
|
107 |
| -# The URL of the framework's original source repository. |
108 |
| -declare -r -x _GO_CORE_URL='https://github.com/mbland/go-script-bash' |
109 |
| - |
110 | 110 | # The directory in which plugins are installed.
|
111 | 111 | declare _GO_PLUGINS_DIR=
|
112 | 112 |
|
|
0 commit comments