-
Notifications
You must be signed in to change notification settings - Fork 35
/
bbi.bat
56 lines (44 loc) · 1.09 KB
/
bbi.bat
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@echo off
cd scripts
CALL dependencies.bat
IF "%1" == "start" (
IF "%2" == "jupyter" (
CALL start-jupyter.bat
) ELSE IF "%2" == "bumblebee" (
CALL start-bumblebee.bat
) ELSE (
CALL start-environment.bat
)
) ELSE IF "%1" == "restart" (
IF "%2" == "jupyter" (
CALL restart-jupyter.bat
) ELSE IF "%2" == "bumblebee" (
CALL restart-bumblebee.bat
) ELSE (
CALL restart-environment.bat
)
) ELSE IF "%1" == "install" (
IF "%2" == "optimus" (
CALL install-optimus.bat
) ELSE IF "%2" == "bumblebee" (
CALL install-bumblebee.bat
) ELSE (
CALL install-environment.bat
)
) ELSE IF "%1" == "update" (
IF "%2" == "optimus" (
CALL update-optimus.bat
) ELSE IF "%2" == "bumblebee" (
CALL update-bumblebee.bat
) ELSE (
CALL update-environment.bat
)
) ELSE IF "%1" == "stop" (
IF "%2" == "bumblebee" (
CALL stop-bumblebee.bat
) ELSE (
ECHO Unknown parameter, did you mean 'bbi stop bumblebee'?
)
) ELSE (
ECHO Unknown parameter, try 'bbi install environment'
)