Skip to content

Commit

Permalink
Add comments to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
a-b committed Feb 24, 2024
1 parent 3a76b18 commit 912d8a5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/shep_env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ export PS4=$'+ \e[0;40;36m${BASH_SOURCE}:${FUNCNAME[0]:+${FUNCNAME[0]}}:${LINENO
${DEBUG:+set -x}
set -e

#
# There is a shortcut to target specific environment via `export SH_ID=`
#
# ```
# SH_ID=205d4fca-66da-48c6-90ae-10a6f79610e1 SH_NS=aberezovsky shep_env
# ```
#
# After this `bosh`, `credhub`, and `cf` commands will be targeted to selected shepherd environment.
#
# By default scripts use tas-devex namespace, but you can easially point to your personal namespace by `export SH_NS=`
#

export SH_NS=${SH_NS:-tas-devex} \
SH_ID=${SH_ID:---last-lease}

Expand Down
15 changes: 15 additions & 0 deletions bin/shep_select
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ export PS4=$'+ \e[0;40;36m${BASH_SOURCE}:${FUNCNAME[0]:+${FUNCNAME[0]}}:${LINENO
# env SHELLOPTS="${SHELLOPTS}:xtrace" shep_env
set -e

#
# Script allow developer to list, select, and target TAS shepherd environments from the workstation
# By default scripts use tas-devex namespace, but you can easially point to your personal namespace by `export SH_NS=`
#
# ```
# SH_NS=aberezovsky shep_env
# ```
#
# You can pass environment filter options after `s` or `shep_select` command
#
# ```
# shep_select APPSMAN-148
# ```
#

${DEBUG:+set -x}

export SH_NS="${SH_NS:-tas-devex}"
Expand Down

0 comments on commit 912d8a5

Please sign in to comment.