2025-01-09T14:30:26
This commit is contained in:
26
app.sh
Executable file
26
app.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#! /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
|
||||
Reference in New Issue
Block a user