-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun
executable file
·32 lines (23 loc) · 869 Bytes
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -o errexit
set -o pipefail
# -----------------------------------------------------------------------------
# Helper functions start with _ and aren't listed in this script's help menu.
# -----------------------------------------------------------------------------
function serve {
docker run -it -v $PWD:/app -v $PWD/scratch:/scratch -p 5000:5000 uploadware python -m make serve
}
function build {
echo hi
}
function deploy {
rsync -av --exclude=.git --exclude=__pycache__ ./ stage.r2ware.app:reid-uploader/
}
function help {
printf "%s <task> [args]\n\nTasks:\n" "${0}"
compgen -A function | grep -v "^_" | cat -n
printf "\nExtended help:\n Each task has comments for general usage\n"
}
# This idea is heavily inspired by: https://github.com/adriancooney/Taskfile
TIMEFORMAT=$'\nTask completed in %3lR'
time "${@:-help}"