===================================================================== Finally decided to port personal scripts into a standalone library. --- Release Notes ------------------------ - added support for python, zsh, and zx scripts - added support for "interactive" scripts which drop the user to a REPL - added support for passing arguments to commands - added support for python/node virtualenv management through scwrypts - added contributing and usage docs - updated zsh plugin to write commands to history - licensed under GPLv3 --- New Scripts -------------------------- zsh/scwrypts ) - configure - environment/copy - environment/delete - environment/edit - environment/synchronize - logs/clear - logs/view zsh ) - aws/ecr/login - aws/efs/mount - aws/efs/unmount - aws/route53/backup - aws/s3/media-sync/pull - aws/s3/media-sync/push python ) - redis/interactive
18 lines
572 B
Bash
Executable File
18 lines
572 B
Bash
Executable File
#!/bin/zsh
|
|
source ${0:a:h}/common.zsh
|
|
__CHECK_IMPORTS
|
|
#####################################################################
|
|
|
|
ENV_TYPE=$(echo $__AVAILABLE_VIRTUALENVS | sed 's/ \+/\n/' | __FZF 'select an environment to refresh')
|
|
[ ! $ENV_TYPE ] && __ABORT
|
|
|
|
__REMINDER
|
|
__REMINDER "this will permanently remove all artifacts for the scwrypts $ENV_TYPE environment"
|
|
__REMINDER "(safe unless you have put something important in $(__GET_VIRTUALENV_PATH $ENV_TYPE))"
|
|
__REMINDER
|
|
|
|
|
|
__Yn "drop and recreate $ENV_TYPE virtual environment?" || __ABORT
|
|
|
|
__REFRESH_VIRTUALENV $ENV_TYPE
|