Skip to content

Commit 912d8a5

Browse files
committed
Add comments to scripts
1 parent 3a76b18 commit 912d8a5

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

bin/shep_env

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ export PS4=$'+ \e[0;40;36m${BASH_SOURCE}:${FUNCNAME[0]:+${FUNCNAME[0]}}:${LINENO
55
${DEBUG:+set -x}
66
set -e
77

8+
#
9+
# There is a shortcut to target specific environment via `export SH_ID=`
10+
#
11+
# ```
12+
# SH_ID=205d4fca-66da-48c6-90ae-10a6f79610e1 SH_NS=aberezovsky shep_env
13+
# ```
14+
#
15+
# After this `bosh`, `credhub`, and `cf` commands will be targeted to selected shepherd environment.
16+
#
17+
# By default scripts use tas-devex namespace, but you can easially point to your personal namespace by `export SH_NS=`
18+
#
19+
820
export SH_NS=${SH_NS:-tas-devex} \
921
SH_ID=${SH_ID:---last-lease}
1022

bin/shep_select

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ export PS4=$'+ \e[0;40;36m${BASH_SOURCE}:${FUNCNAME[0]:+${FUNCNAME[0]}}:${LINENO
55
# env SHELLOPTS="${SHELLOPTS}:xtrace" shep_env
66
set -e
77

8+
#
9+
# Script allow developer to list, select, and target TAS shepherd environments from the workstation
10+
# By default scripts use tas-devex namespace, but you can easially point to your personal namespace by `export SH_NS=`
11+
#
12+
# ```
13+
# SH_NS=aberezovsky shep_env
14+
# ```
15+
#
16+
# You can pass environment filter options after `s` or `shep_select` command
17+
#
18+
# ```
19+
# shep_select APPSMAN-148
20+
# ```
21+
#
22+
823
${DEBUG:+set -x}
924

1025
export SH_NS="${SH_NS:-tas-devex}"

0 commit comments

Comments
 (0)