Improve voxvera init prompts

This commit is contained in:
thePR0M3TH3AN
2025-06-19 11:42:00 -04:00
parent 08482b02ca
commit 45edf61969
3 changed files with 80 additions and 22 deletions

View File

@@ -39,4 +39,15 @@ for pkg in javascript-obfuscator html-minifier-terser; do
fi
done
# ensure Python packages used by the CLI are available
for py in InquirerPy rich; do
python3 - <<EOF >/dev/null 2>&1
import importlib.util, sys
sys.exit(0 if importlib.util.find_spec('$py') else 1)
EOF
if [ $? -ne 0 ]; then
pip install --user "$py"
fi
done
echo "All dependencies are installed."