-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraddnodi
executable file
·41 lines (31 loc) · 1.27 KB
/
graddnodi
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
33
34
35
36
37
38
39
40
41
clear
help() {
printf "The following commands are available:\n"
printf "\t\e[4mrun\e[0m\n"
printf "\tRuns the program\n"
printf "\t\e[3mOptions\e[0m\n"
printf "\t-c / --config-path\n"
printf "\t\tPath to config.json file. Default: Setting/config.json\n"
printf "\t-i / --influx-path\n"
printf "\t\tPath to influx.json file. Default: Setting/influx.json\n"
printf "\t-o / --output-path\n"
printf "\t\tWhere output is saved. Default: Output\n"
printf "\t-f / --full-output\n"
printf "\t\tWrite full output to report, including scatter graphs, eCDFs and Blant Altman plots\n\m"
printf "\t\e[4msetup\e[0m\n"
printf "\tRuns the setup script\n"
printf "\t\e[4mhelp\e[0m\n"
printf "\tDisplays this prompt\n"
}
setup() {
command -v python3 &> /dev/null || (printf 'python3 cannot be found in PATH\n' && return)
python3 -c 'import venv' &> /dev/null || (printf 'python3 venv package is not installed. To set up a virtual environment, please install the python3 virtualenv package\n' && return)
python3 -m venv .env
.env/bin/pip install -r requirements.txt
}
printf "#########################\n"
printf "# Welcome to Graddnodi! #\n"
printf "#########################\n\n"
printf "Type \e[3mhelp\e[0m to see commands\n\n"
alias run=".env/bin/python3 src/main.py"
PS1="(Graddnodi) > "