Skip to content

Commit 8f04455

Browse files
committed
Mark 'venv sync' as deprecated
1 parent 1202c6f commit 8f04455

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/venv-cli/venv.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ venv::clear() {
301301
venv::sync() {
302302
if venv::_check_if_help_requested "$1"; then
303303
echo "venv sync [<lock file>]"
304-
echo
304+
echo ""
305+
echo "DEPRECATED: This command is deprecated and will be removed in version 2.0."
306+
echo "Use 'venv install <requirements.lock>' instead."
307+
echo ""
305308
echo "Remove all installed packages from the environment (venv clear)"
306309
echo "and install all packages specified in <lock file>."
307310
echo "The <lock file> must be in the form '*requirements.lock'."
@@ -318,6 +321,8 @@ venv::sync() {
318321
return "${_success}"
319322
fi
320323

324+
venv::color_echo "${_yellow}" "DEPRECATED: This command is deprecated and will be removed in version 2.0. Use 'venv install <requirements.lock>' instead."
325+
321326
local lock_file
322327
if [ -z "$1" ]; then
323328
# If no argument passed

0 commit comments

Comments
 (0)