We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01aacaf commit 2396484Copy full SHA for 2396484
src/venv-cli/venv.sh
@@ -34,6 +34,14 @@ venv::raise() {
34
return "${_fail}"
35
}
36
37
+venv::_check_venv_activated() {
38
+ if [ -z "${VIRTUAL_ENV}" ]; then
39
+ venv::raise "No virtual environment activated. Please activate the virtual environment first"
40
+ return "${_fail}"
41
+ fi
42
+ return "${_success}"
43
+}
44
+
45
venv::_check_if_help_requested() {
46
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
47
return "${_success}"
0 commit comments