Files
python-examples/app.sh
2025-01-09 14:30:26 +09:00

26 lines
506 B
Bash
Executable File

#! /usr/bin/env bash
case $1 in
activate)
echo "Activating the virtual environment"
. ./venv/bin/activate
;;
deactivate)
echo "Deactivating the virtual environment"
deactivate
;;
gitup)
echo "Pushing to git"
git add -A
git commit -m $(date "+%Y-%m-%dT%H:%M:%S")
git push origin
;;
helloworld)
echo "Running the helloworld script"
python src/helloworld.py
;;
*)
echo "Usage: $0 {activate|deactivate|helloworld}"
exit 1
;;
esac