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 894d71e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/shep_env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ 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 in case you know what
# you need
#
# ```
# SH_ID=205d4fca-66da-48c6-90ae-10a6f79610e3 SH_NS=aberezovsky shep_env
# ```
# By default scripts use tas-devex namespace, but you can easially point
# to your personal namespace
#

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

#
# By default scripts use tas-devex namespace, but you can easially point
# to your personal namespace
#
# ```
# 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 894d71e

Please sign in to comment.