From f64b7f850e1dc52ec0c8f2b85df499e0242c95b7 Mon Sep 17 00:00:00 2001 From: Peter Boin Date: Tue, 15 Aug 2017 22:07:45 +1000 Subject: [PATCH] added lsenv --- deployment/deploy.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deployment/deploy.sh b/deployment/deploy.sh index 008bbee..7c63f0d 100755 --- a/deployment/deploy.sh +++ b/deployment/deploy.sh @@ -42,6 +42,7 @@ Arguments: creates both 'sdist' and 'wheel' distrobutions. Virtual Environments: + lsenv List created virtual environments for this lib rmenv py# Remove virtual environment remkenv py# Remove, then create re-create virtual environment envprereq py# install environment prerequisites (official PyPi) @@ -83,6 +84,10 @@ function build() { popd } +function lsenv() { + lsvirtualenv -b | grep ^${LIB_NAME}_ +} + function rmenv() { # Remove virtual environment set_venv_variables $1 @@ -210,6 +215,7 @@ case "$1" in # Valid Commands setup) setup ;; build) build ;; + lsenv) lsenv ;; rmenv) rmenv $2 ;; remkenv) remkenv $2 ;; envprereq) envprereq $2 ;; @@ -224,4 +230,4 @@ case "$1" in ;; esac -echo ./${0##*/} completed successfully +#echo ./${0##*/} completed successfully